[英]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:
我的意思是:
git flow init
on the LAMP server (where all the testing and version control will be held)? git flow init
设置git存储库(将保留所有测试和版本控制)吗? feature_x
/ hotfix_y
/ releas_z
branch in the remote repository? releas_z
远程存储库中的特定feature_x
/ hotfix_y
/ releas_z
分支? 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有基本的了解,所以我很感激你的指导。
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: 所以,按顺序:
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尝试推送分支时的错误消息跟踪任何事情
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.