- Published on
Git Squash
Squash recent 3 commits into a single commit
git rebase -i HEAD~3
change
pick fda59df commit 1
pick x536897 commit 2
pick c01a668 commit 3
to
pick fda59df commit 1
squash x536897 commit 2
squash c01a668 commit 3
git rebase -i HEAD~3
change
pick fda59df commit 1
pick x536897 commit 2
pick c01a668 commit 3
to
pick fda59df commit 1
squash x536897 commit 2
squash c01a668 commit 3