Skip to content

Squash merge pull request #453

Answered by tarsius
dwdwdan asked this question in Q&A
Discussion options

You must be logged in to vote

You can do that by invoking forge-merge with a prefix argument.

It is not possible to replicate Github's behavior without actually using Github (in this case its API). When you click on squash&merge, Github does not (as I think it should) first update the feature branch and then fast-forward the target branch to the tip of that. Instead it creates a temporary branch and then updates and ff-merges that. The result is that the feature branch forever stays in its original state and that tools other than Github itself cannot easily tell that it has been merged.

I recommend that instead of using that command you use Magit to rebase. Use the "fixup" action to combine the commits into one. Inspe…

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by tarsius
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants