gitflow-avh
gitflow-avh copied to clipboard
git flow config - save per repository?
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?
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:
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.