GitHub:为什么要分叉? [英] GitHub: Why should I fork?

查看:331
本文介绍了GitHub:为什么要分叉?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我明白分叉是在服务器端克隆存储库。但我不明白为什么我会那么做。



为什么不将原始存储库克隆到我的机器上,添加我的代码,而不是将新分支推送到GitHub并使一个拉请求?

解决方案

从Github文档



是存储库的副本。分叉存储库允许您在不影响原始项目的情况下自由地尝试更改。



最常见的情况是,叉子用于向其他人的项目提出更改或使用其他人的项目项目作为你自己想法的起点。

https://help.github.com/articles/fork-a-repo/


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:为什么要分叉?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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