nvie / gitflow

Git extensions to provide high-level repository operations for Vincent Driessen's branching model.

Home Page:http://nvie.com/posts/a-successful-git-branching-model/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

.gitconfig / .gitflow in repo root

MPasadu opened this issue · 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.

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.

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.