这两个命令都会将代码推送到受关注的分支,以便其他开发人员可以在该分支上工作。那么这两个命令的确切区别是什么?
小智 5
在执行git flow feature publish其他一些命令时,将通过git-flow以下命令在后台运行:
推树枝
git push origin my-feature
在分支上配置远程属性
git config “branch.my-feature.remote” “origin”
在分支上配置合并属性
git config “branch.my-feature.merge” “refs/heads/my-feature”
签出分支
git checkout “my-feature”