"Rebase and merge" should autosquash fixup commits #40804
Replies: 8 comments 3 replies
-
Killer feature indeed! That's currently the number one annoyance in the PR workflow. PRs getting rebased during or "after" reviews. |
Beta Was this translation helpful? Give feedback.
-
Please support this. I can get non experienced git devs to use fixup, but not to rebase locally. This would greatly help with PR workflows. |
Beta Was this translation helpful? Give feedback.
-
This would be much appreciated, I have merged too many |
Beta Was this translation helpful? Give feedback.
-
See also GitLab feature request https://gitlab.com/gitlab-org/gitlab/-/issues/212 |
Beta Was this translation helpful? Give feedback.
-
If fixup commits aren't autosquashed on merge, at least there should be some sort of warning shown to make it harder to accidentially merge fixup commits. |
Beta Was this translation helpful? Give feedback.
-
Sorry, but I don't know how these threads work, but should we wait and hope that a GitHub core contributor drops into this discussion or is there something else that needs to be done to get an answer if this is feasible or not? (no offense here) |
Beta Was this translation helpful? Give feedback.
-
+1100000 here also can be used by the ```suggestion feature -> that could create fixup commits |
Beta Was this translation helpful? Give feedback.
-
100%, the lack of this feature combined with the poor ability to diff across force-pushes basically makes a multi-commit-per-PR workflow needlessly difficult. |
Beta Was this translation helpful? Give feedback.
-
Select Topic Area
Product Feedback
Body
It would be a killer feature if the Rebase and merge method of merging a pull request would apply the
git rebase --autosquash
argument:This would allow users to add commits to a PR using
git commit --fixup
, where fixup is applied to another commit in the PR but not the base branch. Then when rebase merging via GitHub the fixup commits would be automatically squashed into the specified commit. It would save users from having to perform thegit rebase --autosquash --interactive
locally and having to force push to the PR branch. Force pushing to the PR branch has many downsides including obsoleting CI runs and making reviews anchored to commits that are no longer part of the PR.Beta Was this translation helpful? Give feedback.
All reactions