gitflow-avh icon indicating copy to clipboard operation
gitflow-avh copied to clipboard

git flow config - save per repository?

Open MPasadu opened this issue 6 years ago • 2 comments

I am not sure if this is a real issue.

Is it possible to setup a git flow config inside the repo like the .gitattributes? So when a developers clones the repo, they already use the right settings?

E.g:

  • Not having to do git flow init
  • Having several configs set like: git config gitflow.feature.finish.preserve-merges TRUE

Also is there somewhere a description what each config option does?

MPasadu avatar Dec 05 '18 14:12 MPasadu

I would really like to see this. I have over a hundred repositories all using git flow, and I've lost track of the number of times I've had to git flow init and try to remember the correct settings. :smile:

io7m avatar Jun 07 '19 16:06 io7m

Due to the nature of reading/writing the values git flow uses, this is not possible. The software uses git config for all the values. I never tried it but here is an option: git flow init -d --global this will set all the default git flow setting in ~/.gitconfig The only issue I see with that is the hooks parameter, it would be set to a directory in a current repo, you might want to change that path.

petervanderdoes avatar Jun 07 '19 18:06 petervanderdoes