我有一个修补程序,我想提交给同行评审。
我正在使用 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 并开发分支以使它们保持同步。