【发布时间】:2014-08-10 10:14:52
【问题描述】:
我想提交一个修补程序供同行评审。
我正在使用 git-flow http://nvie.com/posts/a-successful-git-branching-model/
git-flow 似乎没有git flow hotfix publish 命令。
我的处理方法如下:
本地
git flow hotfix start v1.0.1
make changes to files, git add and git commit as normal.
git push
远程
Ask a team member to pull / review the hotfix branch
本地
git flow hotfix finish
git push origin master
git push origin develop
git push --tags
远程
delete the hotfix branch
这似乎有点笨拙。我想要的是能够将修补程序分支的拉取请求提交到远程的开发和主分支。然后我希望能够在我的本地 master 上执行 git pull 并开发分支以使它们保持同步。
【问题讨论】:
标签: git github git-flow hotfix