Update branch with rebase repository setting #12032
Replies: 38 comments 6 replies
-
It'd be great for it to even just remember the last used option like the "Merge PR" option does. |
Beta Was this translation helpful? Give feedback.
-
The issue I am facing is that even when merge commits are disabled in the repository settings, the update button still defaults to merge commits. Please change the "update branch" button to either follow the same rules as the overall PR options, or allow it to be configured separately to disallow certain options. (The "update branch" is a great feature, btw!) |
Beta Was this translation helpful? Give feedback.
-
This was also requested in a comment on another feature request: #3245 (comment) and that comment currently has more upvotes than this post (so the upvotes here are under-represented) |
Beta Was this translation helpful? Give feedback.
-
That would be an awesome feature, if we choose the strategy to update the branch, just like we do with PR merging. |
Beta Was this translation helpful? Give feedback.
-
Hey @scotttesler, any chance we can get some traction on this please? 🙏 |
Beta Was this translation helpful? Give feedback.
-
doubtful, with all the layoffs circling around. |
Beta Was this translation helpful? Give feedback.
-
@krisnova ^^ This is the issue I was talking about on your Twitch stream. 😸 |
Beta Was this translation helpful? Give feedback.
-
there's no way for a user (non github employee) to contribute to the github codebase and make this happen, is there? |
Beta Was this translation helpful? Give feedback.
-
Is there any update from the GitHub team regarding this feature request? |
Beta Was this translation helpful? Give feedback.
-
We were just discussing how update with rebase is preferred but most of my dev team just clicks the button. I'd like it at least to be configurable to be the first option to save a click. |
Beta Was this translation helpful? Give feedback.
-
This would be a major help for how our testing system is integrated, this is a small change that would be a big QoL help. |
Beta Was this translation helpful? Give feedback.
-
Our team would really benefit from this too! Have had a couple of team members accidentally merge, and then have had to undo that change. Would really like to be able to select a default other than "merge" |
Beta Was this translation helpful? Give feedback.
-
Would love this feature! Sucks when teammembers accidentally presses the merge button Personally I want merge-commits from feature-branches on to the main-branch, but I dont want to allow merge-commits for updating other branches, this should be done using rebase. I tried enforcing it with the branch-protection rule "require linear history" on all other branches than main. But unfortunately it uses the entire commit-history, and not just the commits on the specific branch |
Beta Was this translation helpful? Give feedback.
-
Our team would love this feature as well. We would like the feature branches to be updated using rebase to avoid having so many merge-commits. Our master, staging, and develop branches would be updated using merges obviousy, but for feature branches or fix branches, this feature would help us have a cleaner commit history in a simpler way. |
Beta Was this translation helpful? Give feedback.
-
Please please add this feature. Seeing merge commits in our PRs disturbs a lot of future github actions (like creating releases and generating change logs) |
Beta Was this translation helpful? Give feedback.
-
It would be nice to be able disable "Update with rebase" completely as well. Poeple still use the "Update with rebase" feature every once in a while and get confused why their PR checks fail and they have to do the interactive rebase locally to sign all the commits once again. |
Beta Was this translation helpful? Give feedback.
-
To add to the "disable" conversation, the "Update branch" button could have a section in Settings under General just like the Pull Request button:
Update Branch button options:
There should definitely be an option for selecting the default as well, for both buttons! |
Beta Was this translation helpful? Give feedback.
-
What's the status of this, is GitHub even aware? |
Beta Was this translation helpful? Give feedback.
-
Been awaiting this (and a "Update branch with rebase and merge into main"-button) for so many years. Please Github |
Beta Was this translation helpful? Give feedback.
-
Response from GitHub support as of today,
|
Beta Was this translation helpful? Give feedback.
-
Here's another vote to add this. |
Beta Was this translation helpful? Give feedback.
-
Here's another vote to add this. |
Beta Was this translation helpful? Give feedback.
-
Count my vote as well, I will also write support. |
Beta Was this translation helpful? Give feedback.
-
This would be very nice to have 🙏🏽 please, make it happen! |
Beta Was this translation helpful? Give feedback.
-
I feel like over the years we've added thousands upon thousands of votes for this feature, but for the sake of it - here is my vote added (again). |
Beta Was this translation helpful? Give feedback.
-
Adding our voice here as a very nice way and feature for enforcing such a development process at an organisation level! |
Beta Was this translation helpful? Give feedback.
-
Our workflow is to "rebase" branches in PRs, so that the history in the branch itself stays quite linear, and then create explicit merge commits (without squashing) when the PR branch gets merged into the mainline. It would be very helpful for us indeed if we could org-wide require the "Update branch" button to always use "rebase" as strategy. |
Beta Was this translation helpful? Give feedback.
-
It has been nearly 3 years since this issue was first raised, is there any movement on this at all? |
Beta Was this translation helpful? Give feedback.
-
Would love this feature as well 🥹 |
Beta Was this translation helpful? Give feedback.
-
The new update branch feature is great!
But for teams which are only using the rebase functionality, it's not optimal to always have to pick the rebase option from a drop down menu.
It would be ideal if there were a repository level setting to configure which option is the default for that button.
Beta Was this translation helpful? Give feedback.
All reactions