Not entirely thrilled with the amount of supporting docs on this one and am open to advice on cutting it down.
Squash ➡️ commits in pull request into single commit
git rebase -i <branch name>
Make sure that latest commits are fetched from upstream.
git fetch upstream
git rebase -i upstream/master
Change "pick" to "squash" for the commits you wish to squash and save.
git push origin <topic branch> --force-with-lease
Related: #2
Not entirely thrilled with the amount of supporting docs on this one and am open to advice on cutting it down.
Squash
➡️commits in pull request into single commit