Git is most popular Version control system used widely in both open source and enterprise worlds.
It is mostly popular because of feature and configuration it provides.
Speaking of configuration, it allows you to do configuration in
.gitconfig file, mostly placed at home directory of machine.
Possible locations for this are as follows -
- System wide at inside
/etc, for .e.g
- Inside user home directory, for .e.g
- Inside any git project
Note, different file names for each locations.
Beauty of Git is, it allows you to place you anywhere other than above mentioned directories.
But you will need to tell Git where you put the your
For this, You will need to include the following lines in System wide or user home directory
[include] path= /path/to/file/.gitconfig
This is pretty good trick when you are maintaining the dotfiles for all tools configurations like gitconfig
Note To use this feature, please make sure you have Git Version 1.7.10 or above