Git 团队开发工作流

来源:互联网 发布:windows gdi 图形编程 编辑:程序博客网 时间:2024/05/22 06:07

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 则不保留当前更改

0 0
原创粉丝点击