简体   繁体   English

将分叉的仓库合并到主仓库

[英]Merging a forked repo to the main repo

How do I merge code in a forked repository to the main repository(from where the fork was created) where I have push permission. 如何将叉式存储库中的代码合并到具有推送权限的主存储库(从中创建派生)。 The main repository is forked for some development and now we need to get the changes to it merged in the main repository. 主存储库是为进行某些开发而创建的,现在我们需要将其更改合并到主存储库中。 And there is no pull request as well. 而且也没有拉取请求。

  1. fetch the latest changes from the main repository to the local with git fetch 使用git fetch从主存储库到本地的最新更改
  2. merge them with with your changes with git merge git merge将它们与您的更改git merge
  3. push the resulted commit with git push git push结果提交

steps 1 & 2 can be combined into a signle one with git pull 步骤1和2可以用git pull组合成一个信号

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM