Last active
December 4, 2015 13:21
-
-
Save alexandrinos/035da21ec78fb38adf2d to your computer and use it in GitHub Desktop.
git config global,system,local config .gitconfig in win7 /linux
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
git config -l (--system ?! ) -> C:\Users\All Users\Application Data\Git\config | |
git config --global -l -> C:\Users\Administrator\.gitconfig | |
git config --local -l -> project\.git\config | |
********************* | |
Linux | |
1. /etc/gitconfig file: Contains values for every user on the system and all their repositories. If you pass the option --system to git config, it reads and writes from this file specifically. | |
2. ~/.gitconfig or ~/.config/git/config file: Specific to your user. You can make Git read and write to this file specifically by passing the --global option. | |
3. config file in the Git directory (that is, .git/config) of whatever repository you’re currently using: Specific to that single repository. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment