“git push origin <branch>”和“git flow feature publish”之间有什么区别?</branch>

时间:2014-12-29 05:51:58

标签: git git-flow

这两个命令都会将代码推送到受尊重的分支,以便其他开发人员可以在该分支上工作。那么这两个命令之间的确切区别是什么?

2 个答案:

答案 0 :(得分:4)

执行git flow feature publish后,git-flow在后​​台运行了一些其他命令:

推动分支
git push origin my-feature

配置分支上的远程属性
git config “branch.my-feature.remote” “origin”

配置分支上的merge属性
git config “branch.my-feature.merge” “refs/heads/my-feature”

检查分支
git checkout “my-feature”

答案 1 :(得分:-2)

在此问题之前我没有听说过git-flow,但它是Git扩展的集合,为Vincent Driessen的分支模型提供高级存储库操作,它可以在{ {3}}

这基本上意味着你不能使用它,除非你安装了添加。

因此,git push origin适用于每个地方,git flow feature publish仅适用于安装了附加功能的系统。

相关问题