Assume i have made 10 commits on myBranch (and myBranch is checked out). I want to rebase with master and squash all commits.
our current workflow is ...
- git checkout master
- git fetch origin
- git pull -r origin master
- git checkout myBranch
- git rebase -i master
- git push -f origin myBranch
A total of 6 steps AND interactive rebase consoles to deal with too (not to mention the risk of force pushing).
Is there a shorter workflow that will have the same effect?