我有一个补丁需要提交同行评审。
我正在使用 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
这似乎有点笨重。我想要的是能够向远程的开发和主分支提交一个热修复分支的拉取请求。然后,我想要能够在本地的主分支和开发分支上执行 git pull 命令,以使它们保持同步。