http://xudaoli.qiniudn.com/talks/teamwork-with-git-flow/index.html
删除本地分支
git branch -D
删除远程分支
git push origin –delete
or
git push origin :
重命名
If you want to rename a branch while pointed to any branch, do :
git branch -m
If you want to rename the current branch, you can do:
git branch -m
配置:(go get 全部使用 ssh)
git config –global url.”git@github.com:”.insteadOf “https://github.com/”
Git如何删除版本库中的一个提交?
git reset –hard HEAD~1
git push –force
第一步可以这样直接取消上一次 commit git reset HEAD~1; 如果加上参数 –hard 则不保留当前更改