7039 shaares
git config --global alias.squashbranch '! f() { git rebase -i $(git merge-base HEAD $1); }; f'
Then use it with git squashbranch origin/master
git config --global alias.squashbranch '! f() { git rebase -i $(git merge-base HEAD $1); }; f'
Then use it with git squashbranch origin/master