问题描述
我明白分叉是在服务器端克隆存储库。但我不明白为什么我会那么做。
为什么不将原始存储库克隆到我的机器上,添加我的代码,而不是将新分支推送到GitHub并使一个拉请求?
从Github文档
是存储库的副本。分叉存储库允许您在不影响原始项目的情况下自由地尝试更改。
最常见的情况是,叉子用于向其他人的项目提出更改或使用其他人的项目项目作为你自己想法的起点。
I understand that forking is cloning the repository on the server side. But I don't understand why I would do that.
Why not clone the original repository to my machine, add my code, than push the new branch to GitHub and make a pull request?
From the Github documentation
A fork is a copy of a repository. Forking a repository allows you to freely experiment with changes without affecting the original project.
Most commonly, forks are used to either propose changes to someone else's project or to use someone else's project as a starting point for your own idea.
https://help.github.com/articles/fork-a-repo/
这篇关于GitHub:为什么要分叉?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!