简体   繁体   English

对于没有经验的团队,最好的Git工作流程是什么?

[英]What is the best Git workflow to use for an inexperienced team?

I'm a college student taking a software development course where we have to work in a team to develop a finished product. 我是一名在上软件开发课程的大学生,在该课程中,我们必须团队合作才能开发出最终产品。 I'm working in a group with four other people to create a CRUD web application using CodeIgniter. 我正在与其他四个团队一起使用CodeIgniter创建CRUD Web应用程序。 They don't know much about source control, and none of them know how to use Git (which is what I decided would be the best VCS to use). 他们对源代码控制了解不多,他们都不知道如何使用Git(这是我认为将是最好的VCS使用方式)。 They are all planning on using the GUI-based Github client to commit and push code. 他们都计划使用基于GUI的Github客户端来提交和推送代码。

What would be the best Git workflow to use in this situation? 在这种情况下,最好的Git工作流程是什么? I originally thought about giving each of them their own personal branch to work on, along with a dev branch for testing changes and master for production-ready code. 我最初考虑给他们每个人一个自己的个人分支来工作,以及一个用于测试更改的开发分支和一个用于生产就绪代码的母版。 However after spending more time thinking about it, I think this might not be the best idea. 但是,在花了更多时间思考之后,我认为这可能不是最好的主意。 I want them to be able to keep their local copy up to date as frequently as possible while also minimizing the number of merge conflicts that could potentially occur. 我希望他们能够尽可能经常地更新其本地副本,同时还要尽可能减少可能发生的合并冲突。 Anyone have any ideas? 有人有想法么?

If you use github then I would suggest: 如果您使用github,那么我建议:

  • Create a user account for each user. 为每个用户创建一个用户帐户。
  • Create an organization having all of you as users. 创建一个以所有人为用户的组织。
  • Under the organization create the master repository 在组织下创建主存储库
  • Each user forks the master repository into their own account. 每个用户将主存储库派生到自己的帐户中。
  • On a regular basis, each user pulls the master repository to get updates. 定期,每个用户都会拉动主存储库以获取更新。
  • Each user creates pull requests when work has been completed, to go back into the master repository. 每个用户在工作完成后都会创建拉取请求,以返回主存储库。

Perhaps you could use the github flow which is a very simple work flow. 也许您可以使用github flow ,这是一个非常简单的工作流。

https://guides.github.com/introduction/flow/ https://guides.github.com/introduction/flow/

And the original post on the subject : http://scottchacon.com/2011/08/31/github-flow.html 以及关于该主题的原始文章: http : //scottchacon.com/2011/08/31/github-flow.html

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

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