petervanderdoes / gitflow-avh

AVH Edition of the git extensions to provide high-level repository operations for Vincent Driessen's branching model
http://nvie.com/posts/a-successful-git-branching-model/
Other
5.42k stars 528 forks source link

[QUESTION] Does everyone who clones my repository need to initialize git flow on their machine? #456

Open ThallyssonKlein opened 3 years ago

ThallyssonKlein commented 3 years ago

Does everyone who clones my repository need to initialize git flow on their machine?

I would like to know if it is possible to save this configuration so that it is unnecessary to do it again.

cizordj commented 3 years ago

That is a very good question, I am commenting to see if anyone knows that

petervanderdoes commented 3 years ago

Yes they have too, and no it's not possible to save the config. The configuration is stored the the local git configuration, you add a small script in the repo that would set the configuration. The same problem occurs for other git settings like core.autocrlf

GustavoCinque commented 2 years ago

No, they won't have to. Git flow is just a tool to create and manage branches using git. Every command on gitflow has a command (or more than one, in some cases) using "native" git. So no. For example, when you use "git flow feature start branch" someone not using gitflow can start a feature branch using: "git checkout develop && git checkout -b feature/branch".

Shea690901 commented 2 years ago

I fact, considering the way github (or gitlab, or codeberg, or ...) works, with pull requests and merges, the only one who needs to use gitflow for easier use is the repo owner himself. All other just need to keep their forks up to date and use feature branches for their development before making a pull request on github against the default branch, wich should be the development branch...