Last active
September 19, 2016 12:41
-
-
Save childnode/66d4b982332824bb8750703aaa1ab0d6 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
currentBranch="$(git branch -q --no-column --no-color | grep '^*' | awk '{print $2}')"; | |
for branch in $(git branch -q --no-column --no-color | sed -e 's/^*/ /'); do | |
git rebase origin/${branch} ${branch} --onto origin/${branch}; | |
done | |
git co ${currentBranch} | |
unset currentBranch |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment