quaylar
quaylar

Reputation: 2635

Partial squash-merge

I'd like to merge my feature-branch into my develop-branch, but squash some commits into 1, while pulling in others as-is. Is there a possibilty to git merge --squash feature and then to choose which commits from the feature-branch should be squashed and which taken as-is?

Upvotes: 2

Views: 647

Answers (1)

ralphtheninja
ralphtheninja

Reputation: 133188

Nah. You must use interactive rebase in order to do pick, delete, squash etc.

git rebase -i HEAD~4

Will let you decide on the four last commits.

Upvotes: 3

Related Questions