Git tips and tricks

How to squash multiple patches into one

If you want your 8 commits appear as one, and do not mind rewriting the history of your branch (o-o-X-A-B-C-D-E-F-G-H), you could :

git branch delivery X
git checkout delivery
git merge –squash master
git commit -a -m “My squashed commits”
git format-patch -1