简体   繁体   English

如何在没有合并提交的情况下在github上执行拉取请求

[英]How to do a pull request on github without a merge commit

1 Month ago i forked a repository. 1个月前,我分叉了一个存储库。 Didnt do any changes to it and today I want to update my fork to lates source from the repository i forked it from. 没有做任何更改,今天我想从我从中派生的存储库中将我的fork更新为最新源。

I issue a pull request from source to my own fork and press merge commit and accept. 我从源向自己的fork发出拉取请求,然后按merge commit和accept。

Then I end up with my fork being one commit ahead of master. 然后我最终以我的叉子比大师领先了一步。 Is there any way to not get this : "Merge pull request ..... " in my commit history? 有什么办法可以在我的提交历史记录中解决这个问题:“合并拉取请求.....”?

I use a local repository to pull from the original and push to the fork. 我使用本地存储库从原始存储库中提取并推送到分叉。 See Syncing a fork . 请参阅同步叉子 Seems like the only way. 似乎是唯一的方法。

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

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