Git flow

回眸只為那壹抹淺笑 提交于 2020-01-07 22:44:34

git flow是一种现在主流的开发流程,当然用svn的不必参考了,首先列出几个更为专业却准确的链接

https://danielkummer.github.io/git-flow-cheatsheet/

https://www.atlassian.com/git/tutorials/comparing-workflows/gitflow-workflow

http://www.ruanyifeng.com/blog/2015/12/git-workflow.html

https://www.git-tower.com/learn/git/ebook/cn/command-line/advanced-topics/git-flow

 

当然不用git flow也是可以的,举个例子,这里就不过分细节了:

git checkout master
git checkout -b develop
git checkout -b feature_branch
# work happens on feature branch
git checkout develop
git merge feature_branch
git checkout master
git merge develop
git branch -d feature_branch

 

git checkout master
git checkout -b hotfix_branch
# work is done commits are added to the hotfix_branch
git checkout develop
git merge hotfix_branch
git checkout master
git merge hotfix_branch

 

end

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!