-
-
Notifications
You must be signed in to change notification settings - Fork 5.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Single-action web UI for a fork to fast-forward pull from origin (Sync fork) #20880
Comments
GitHub already has this function and it's pretty neat. Ref https://docs.github.com/en/pull-requests/collaborating-with-pull-requests/working-with-forks/syncing-a-fork. |
#2488 seems to have been satisfied with using PRs for this. It took me a bit to figure that workflow out, but it is working for me: Here's my upstream: and my fork: If I click this on my fork I get this prompt and have to swap the source and target branches Alternately, I can click the New PR button on the PRs page: and then choose the upstream branch In either case, I get to this page, with the diff shown: and I can submit it as a PR. But again, it took me an embarrassingly long time to figure this out. I 👍 for having a single-click button for the extremely common case of syncing with upstream. |
Thanks for documenting the workaround. It needs also the specific step of making sure to then switch to the fast-forward style of merging. Room for error and quite a hassle, so definitely not ideal. But workarounds are better than nothing. Definitely a sync-with-upstream button is the way to go. |
Any idea why my fork wouldn't be showing the upstream branch? So far I've had to manage it with the command line and I'd love to be able to do this using @kousu workaround (eventually a single click button would be ideal). Edit: The upstream is a Github Mirror, if that changes anything. |
Single-click button when |
this will be very useful to have |
OK, then we will have it in 1.23 |
Now here it is: Support "merge upstream branch" (Sync fork) #32741 , it catches up the 1.23 release milestone. |
Resolved by #32741 |
Feature Description
As appears to have been requested in #2488 but never achieved… This is what should be doable more easily:
Imagine a web-ui user (e.g. a contributor who is helping with docs and is not comfortable with Git or CLI etc) who only makes changes on branches of their fork, keeping their main branch locked to the origin's main.
Right now, these several-too-many steps are required for those using the web ui:
<code>
or the fork title to return to the overview of the forkThat's a lot of steps for what could easily be a single button "fast-forward to latest origin" which could show up whenever origin is ahead of the fork, and it would pull with
--ff-only
and just stay right on the main fork view.For those comfortable with Git, they might skip the Web UI anyway. For those not comfortable, this Web UI process is almost hostile. Without the button I'm requesting, there's no way to easily onboard the sort of contributor who is most comfortable with web UI and have simple instructions about how to use the Web UI to make a fork and keep its main branch updated.
The text was updated successfully, but these errors were encountered: