使用 gitflow 可以为 git 用户提供什么?
我们正在过渡到 git,我们需要源代码控制来更好地处理分支和并行开发。我们整个团队做了一些研究,并决定转向 git。我们也喜欢 gitflow 的模型。我注意到 git 还有一个 gitflow 扩展。
与标准 git 相比,此扩展有什么好处?看起来它主要是用于捆绑命令的宏。我们应该为 gitflow 扩展烦恼吗(我们确实喜欢这个模型)?有用吗?它与标准 git 命令相比如何?
We're transitioning to git, we need source control that handles branching and parallel development better. Our whole team has done a bit of research and we've decided to move to git. We also like the model of gitflow. I noticed there is also a gitflow extension for git.
What benefit does this extension have over standard git? It seems like it's mainly macros for bundling up commands. Should we bother with the gitflow extension (we do like the model)? Is it useful? How does it compare to standard git commands?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
gitflow“扩展”实际上只是一组编码 nvie 分支模型的脚本。完全没有必要使用它们,只是为了方便。您可能会发现使用脚本来处理分支模型很有帮助,或者您可能更愿意坚持使用普通 git 命令来完成完全相同的事情。这只是个人喜好。
The gitflow "extension" is literally just a set of scripts that codify nvie's branching model. There's absolutely no need to use them, it's just a convenience. You may find it helpful to have the scripts to deal with the branching model, or you may prefer to just stick with vanilla git commands to do the exact same thing. It's just a personal preference.
凯文是绝对正确的。除了......,git flow 扩展确实使使用 nvie 模型变得非常容易。它确实有助于强制执行功能的含义,但更重要的是,发布和修补程序是什么!
当您使用 git flow 扩展时,您还可以使用常规 git 命令,完全没有任何惩罚。
我还找到了 OS X GUI 工具 SourceTree。它确实有助于向您展示什么是本地的以及需要从原点推/拉的内容。
Kevin is absolutely right. Except..., the git flow extensions do make it very easy to use the nvie model. It really help enforce just what you mean by a feature, but more importantly, what a release and a hotfix is!
When you use the git flow extensions you can also use regular git commands, no penalty at all.
I've also found the OS X GUI tool, SourceTree. It really help show you what is local and what needs to be push/pulled from origin.