简体   繁体   English

使用Git Flow,成功的分支模型

[英]Using Git Flow, the successful branching model

I joined a project and they kinda have a chaos for code testing and version control solution, so I am in charge of implementing those and more. 我加入了一个项目,他们有一个混乱的代码测试和版本控制解决方案,所以我负责实现这些和更多。

Me, being relatively new to Git, I was wondering how should I implement the http://nvie.com/posts/a-successful-git-branching-model/ ? 我是Git的新手,我想知道如何实施http://nvie.com/posts/a-successful-git-branching-model/ And by that I mean: 我的意思是:

  • Should I setup the git repository using git flow init on the LAMP server (where all the testing and version control will be held)? 我应该在LAMP服务器上使用git flow init设置git存储库(将保留所有测试和版本控制)吗?
  • How do I push some changes to a specific feature_x / hotfix_y / releas_z branch in the remote repository? 如何将某些更改推releas_z远程存储库中的特定feature_x / hotfix_y / releas_z分支?
  • Should I have the same git flow init setup, on my local cloned repository? 我应该在我的本地克隆存储库中使用相同的git flow init设置吗?

I have a basic knowledge of git, so I would appreciate your guidance on this. 我对git有基本的了解,所以我很感激你的指导。

UPDATE UPDATE

If you know a better solution on how to use a control version system and be able to sync from local to live and/or testing environment, please let me know... I'm willing to learn 如果您对如何使用控制版本系统以及能够从本地同步到实时和/或测试环境有更好的解决方案,请告诉我...我愿意学习

git-flow is not something you ordinarily run on your remote server, and is merely a tool to aide managing branches. git-flow不是您通常在远程服务器上运行的东西,而只是帮助管理分支机构的工具。 You would only run git flow init on not-bare checkouts where someone is going to be doing development work. 你只会在有人要进行开发工作的非裸露结账时运行git flow init So, in order: 所以,按顺序:

  • No, you'd just create a bare git repo (using git flow doesn't fundamentally change how to use git) 不,你只是创建一个简单的git repo(使用git flow并没有从根本上改变如何使用git)
  • With git push (or, the first time only with: git push --set-upstream origin feature/name-of-current-feature - this is also in the error message in the current version of git trying to push on a branch not tracking anything) 使用git push (或者,第一次仅使用: git push --set-upstream origin feature/name-of-current-feature - 这也是当前版本的git尝试推送分支时的错误消息跟踪任何事情
  • Yes

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM