Last active
July 11, 2019 08:22
-
-
Save rizerzero/ac475240e3df2441a9b5f507f2ec76c8 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
gfinit(){ | |
git config gitflow.branch.master master | |
git config gitflow.branch.develop develop | |
git symbolic-ref HEAD refs/heads/master | |
git commit --allow-empty --quiet -m "Initial commit" | |
git branch --no-track develop master | |
git checkout -B develop | |
git config gitflow.prefix.feature feature- | |
git config gitflow.prefix.bugfix bugfix- | |
git config gitflow.prefix.release release- | |
git config gitflow.prefix.hotfix hotfix- | |
git config gitflow.prefix.support support- | |
git config gitflow.prefix.versiontag v | |
git config gitflow.feature.finish.no-ff true | |
git config gitflow.path.hooks $(pwd)/.git/hooks | |
} | |
# just add to shell aliases file to init gitflow like you want ! |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment