git squash - interactive rebasin
To squash last 3 commits
git rebase -i HEAD~3
Then you get something like this, you need to change one of it to "pick". In this case, i pick "c8659b4"
pick c8659b4 Merged PR 1914: ensure strongly type response messages are factor in.
s 986cad8 Updated azure-pipelines.yml
s bdb2086 1 2 3
As long as you have a single pick or all pick statement, it will be good. You should be able to rebase (squash) your commits
Comments