简体   繁体   中英

Sync fork with upstream repo without creating a PR commit

When I start working on a new feature on a repo and I have an existing fork, I need to create a PR to sync my fork with the upstream repo. When I merge it into my fork, it creates a commit, which says something like

Merge pull request ... from master

When I fork a repo for the first time, I am able to get a fork without any new commits in it. So I am thinking that there should be a way for me to sync my repo without having to create an extra commit about the PR itself (other than whatever new change is already in upstream)

Is there a way to do it? If not, what is the rationale behind not being able to sync the repo through UI? (Just a feature that is not available?)

重新设置基准不会创建其他合并提交,因此我认为您可以这样做

git pull --rebase <remote>

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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