我想知道对项目进行 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 有什么区别?
发布评论