9504 shaares
222 private links
222 private links
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