[---] comment in .gitconfig?

This question is based on this topic .

Is [---] comment in Git such that I can only use % tool=opendiff % once in my .gitconfig ?

+17
git comments
Jul 04 '09 at 0:17
source share
1 answer

I think you are asking if the square bracket syntax in .gitconfig means something significant. The answer is yes, it partitions .gitconfig . Each section has a name between the square brackets. For example:

 [core] repositoryformatversion = 0 filemode = true bare = false 

In the above example, the name of the core section. If you change the word core to something else, Git will not be able to find, for example, the bare parameter, because it must be inside the core section.

The git -config (1) page contains the entire section describing the configuration file format.

+21
Jul 04 '09 at 0:26
source share



All Articles