gitflow icon indicating copy to clipboard operation
gitflow copied to clipboard

.gitconfig / .gitflow in repo root

Open MPasadu opened this issue 5 years ago • 2 comments

Hello, is it possible to have a file like .gitconfig or .gitflow in the root of the repository with the default branch and prefix names. So when you call git flow init -d they will be used?

Or is there another possibility to like create a batch file that will call the necessary steps to include the .gitconfig file to the .git/config file?

I can't seem to find any solution to make the gitflow defaults depend on the repository instead of global.

MPasadu avatar Mar 19 '19 19:03 MPasadu

I recommend looking at https://github.com/petervanderdoes/gitflow-avh which is able to do what you ask.

Disclaimer: I'm the Project Owner of git-flow AVH Edition.

gitflow-avh is integrated in many other applications and Linux distributions.

petervanderdoes avatar Mar 19 '19 19:03 petervanderdoes

Maybe I'm missing something, but I don't see how that works in AVH. I can see the gitflow items in .git/config, but when I clone the repository, they are not present in the clone.

drewkeller avatar May 14 '19 19:05 drewkeller