[英]How do I merge changes of a git fork into master of my repo?
I have a repository on Github and someone has forked it and made changes (that have helped improve the repository).我在 Github 上有一个存储库,有人对其进行了分叉并进行了更改(这有助于改进存储库)。 Is there a
git
command that will allow me to take those changes made by the other user and modify my original master repo to match that forked repository?是否有
git
命令允许我接受其他用户所做的更改并修改我的原始主存储库以匹配该分叉存储库?
option 1: Use GitHub's Pull Request mechanism选项 1:使用 GitHub 的 Pull Request 机制
Pull Requests were designed especially for this purpose: making it easier for beginners and non-git experts to accept contributions from forks.拉取请求是专门为此目的而设计的:让初学者和非 git 专家更容易接受来自分叉的贡献。
See also:也可以看看:
option 2: setup the forked repo as a remote选项 2:将分叉的 repo 设置为远程
The other option is to setup the fork as an additional remote and fetch/pull from it.另一种选择是将分叉设置为附加遥控器并从中获取/拉取。 But that is more advanced and you sound like a beginner.
但这是更高级的,你听起来像个初学者。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.