Forking和克隆在GitHub上有什么区别? [英] What is the difference between Forking and Cloning on GitHub?

查看:383
本文介绍了Forking和克隆在GitHub上有什么区别?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想知道做一个项目的分叉与做一个克隆的区别。

I'd like to know the differences between doing a Fork of a project and doing a clone of it.

如果我已经分叉的一个项目,通过GitHub上我只能送引入请求?

Can I only send pull requests via GitHub if I've forked a project?

推荐答案

基本上是这样。 fork 只是GitHub克隆项目并将其注册到您的用户名下的请求; GitHub上还跟踪这两个仓库之间的关系,所以你可以想像的提交和两个项目(和其他叉)之间拉。

Basically, yes. A fork is just a request for GitHub to clone the project and registers it under your username; GitHub also keeps track of the relationship between the two repositories, so you can visualize the commits and pulls between the two projects (and other forks).

您仍然可以请求即使您不使用 fork ,人们也会从您的克隆存储库中提取数据,但您必须自行处理这些数据。或者发送开发者补丁(参阅 git format-patch )他们可以应用到他们的树上。

You can still request that people pull from your cloned repository, even if you don't use fork -- but you'd have to deal with making it publicly available yourself. Or send the developers patches (see git format-patch) that they can apply to their trees.

这篇关于Forking和克隆在GitHub上有什么区别?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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