Can someone help give me a a sequence of git commands to help squash any commits that I have in my pull request?
Let's assume that I have pushed changes (or just committed) and would like to squash past commits so it only shows as one.
Is this a reasonable chain of commands?
git checkout master
git pull origin master
git checkout [branch]
git rebase master
git push --force-with-lease
Thanks