最近做项目,用到git的分支和开发流程整合,纪录一下具体的实践。
git branch hotfix
git push origin hotfix
git checkout master
git checkout <commit hash>
git checkout -b hotfix
git checkout -b hotfix origin/hotfix
git checkout hotfix
git commit -m "Check-in comments…"
git push origin hotfix
git checkout master
git merge hotfix
11 January 2013 Suzhou, China当然我们还可以给master分支打上标签,在此之上新建不同版本的branch来维护,此文档会持续更新!