Created
September 25, 2019 08:34
-
-
Save forelabs/c44adaf53aeac7f3b1879822960cf1ea to your computer and use it in GitHub Desktop.
branch rebase master
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
function grmaster() { | |
b=$(git branch | sed -n '/\* /s///p') | |
git checkout master | |
git pull --rebase | |
git checkout $b | |
git rebase master | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment