anandarajpandey.com
Merge (squash) multiple git commits into one
How to combine multiple git commits as one commit? Step 1: git rebase -i HEAD~n # n is the number of commits you want to merge. -i means interactive. Step 2: You will see interactive …