Last Updated: February 25, 2016
·
460
· callmekatootie

Git Configuration

To see all possible configurations that can be provided, do the following:

$ man -P 'less -p "^   Variables"' git config

Here, with the -P option, you request man to use the less pager - basically a utility to open the said document (the man page of the command "git config"). With the -p option, you are requesting "less" to navigate to the "Variables" section in the man page. The "^ Variables" is a regular expression indicating that from the starting of the line to three spaces followed by the text Variables - navigate to the first occurrence of the string that satisfies this regular expression in the man page of git config command.

Other commands to aid the git configuration:
To display all the configurations currently made, you can use the following:

$ git config --list

To display all the configurations made in the profile of your choice (for example the global profile), specify the profile as well:

$ git config --global --list

or if you wish to check what you have configured for your current project (if you have):

$ git config --local --list