什么是合作者使用git回购的最佳方式? [英] Whats the best way to use a git repo for collaborators?

查看:97
本文介绍了什么是合作者使用git回购的最佳方式?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

一般来说,使用回购协议的最佳方式是什么?我们是否应该推动并从主回购协议中拉出来,或者我们是否会为每个合作者分支,然后在适当的时候合并?



如果这是一个愚蠢的/基本的问题,道歉; git noob here ;-)谢谢。

解决方案

Git支持多种不同的工作流程。在这里查看一些概念图以查看一些基本选项: http://git-scm.com/about/distributed



对我而言,分支机构通常不与协作者1:1相关......这就是存储库本身的用途。分支机构用于保持当地任务的变化。

In general, whats the best way to use a repo for collaborators? Should we both just push and pull from the master repo or would we have a branch for each collaborator and then merge when appropriate?

Apologies if this is a stupid/basic question; git noob here ;-)Thanks.

解决方案

Git supports a number of different workflows. See here for some conceptual diagrams to see some basic options: http://git-scm.com/about/distributed

To me, branches aren't typically related 1:1 with collaborators...that's what repositories themselves are for. Branches are for keeping changes local to the task at hand.

这篇关于什么是合作者使用git回购的最佳方式?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆