Skip to content

Instantly share code, notes, and snippets.

@belaz
Created October 9, 2017 12:44
Show Gist options
  • Save belaz/e0371d559c6df36799f575efa869ab06 to your computer and use it in GitHub Desktop.
Save belaz/e0371d559c6df36799f575efa869ab06 to your computer and use it in GitHub Desktop.
git alias reinit
#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