Git modify history
We have 3 old commits pushed as following, we want to modify them and squash the last 2 commits

command:
1 | git rebase -i HEAD~3 |
we got:

Change the last 2 commits to squash

1 | Ech |

Comment the last 2 commit messages

1 | Ech |

1 | git push -f |
And we can find that the commit history have been changed
