Created
October 9, 2017 12:44
-
-
Save belaz/e0371d559c6df36799f575efa869ab06 to your computer and use it in GitHub Desktop.
git alias reinit
This file contains 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
#git | |
reinit = "!f(){ | |
git checkout -b wait; \ | |
git branch -D master; \ | |
git fetch; \ | |
git checkout master; \ | |
git pull; \ | |
git branch -D wait; \ | |
git branch -D $1;\ | |
git push --delete origin $1;\ | |
git checkout -b $1;\ | |
git push --set-upstream origin $1;\ | |
}; f" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment