Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Store git-flow branch naming configuration in the repository

Tags:

git

git-flow

Currently, each user has to configure Git-flow first after having cloned the repository. How to store this branch naming configuration in a committable file (to be stored in the repository), so after having cloned the repository, it can be used with Git-flow out of the box?

like image 669
Mot Avatar asked May 15 '13 10:05

Mot


People also ask

Which one is the best branching Git workflow to follow?

The GitHub flow branching strategy is a relatively simple workflow that allows smaller teams, or web applications/products that don't require supporting multiple versions, to expedite their work. In GitHub flow, the main branch contains your production-ready code.


1 Answers

git-flow stores its configuration using git config which writes to the .git/config file in each repository. This file is not versioned as it represents that individual user's preferences.

You could write a script that calls the appropriate git config commands and then version that (expecting each user to run the script once). Check your own .git/config file for what settings you would need to set.

like image 179
Peter Lundgren Avatar answered Nov 15 '22 07:11

Peter Lundgren