Git Format-patch Multi Commits Onto One Patch

1 · F.J Kong · April 28, 2022, 2:49 p.m.
If your commits are in the “newlines” branch and you have switched back to your “master” branch already, this should do the trick: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 [adam@mbp2600 example (master)]$ git checkout -b tmpsquash Switched to a new branch "tmpsquash" [adam@mbp2600 example (tmpsquash)]$ git merge --squash newlines Updating 4d2de39....