Skip to content

Instantly share code, notes, and snippets.

@belaz
Last active October 9, 2017 13:03
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save belaz/a85f9c37b94642e9f1437abff64921c3 to your computer and use it in GitHub Desktop.
Save belaz/a85f9c37b94642e9f1437abff64921c3 to your computer and use it in GitHub Desktop.
git alias feature
# git
feature = "!f(){ \
git stash;\
git checkout -b wait; \
git branch -D master; \
git fetch; \
git pull origin master; \
git checkout master;\
git branch -D wait;\
git branch -D develop;\
git pull origin develop; \
git checkout develop;\
git checkout -b $1;\
}; f"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment