GitHub 上的 Forking 和 Cloning 有什么区别?

编程入门 行业动态 更新时间:2024-10-28 00:18:18
本文介绍了GitHub 上的 Forking 和 Cloning 有什么区别?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述

我想知道对项目进行 Fork 和对其进行 clone 的区别.

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.

更多推荐

GitHub 上的 Forking 和 Cloning 有什么区别?

本文发布于:2023-10-08 02:21:26,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1471232.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:有什么区别   GitHub   Forking   Cloning

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!