Skip to content

Instantly share code, notes, and snippets.

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 rizerzero/ac475240e3df2441a9b5f507f2ec76c8 to your computer and use it in GitHub Desktop.
Save rizerzero/ac475240e3df2441a9b5f507f2ec76c8 to your computer and use it in GitHub Desktop.
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