squash commits on branch
$ git rebase -i HEAD~4
At the interactive screen that opens up, replace pick with squash at the top for all the commits that you want to squash.
Save and close the editor through esc --> :wq
$ git push origin branch-name --force
4.43
7
git rebase -i HEAD~3
Thank you!
7
0
4.22
9
git rebase -i HEAD~20
Thank you!
9
0
Are there any code examples left?
New code examples in category TypeScript