Git Global Config Location

[Solved] Git Global Config Location | Shell - Code Explorer | yomemimo.com
Question : git config global

Answered by : tame-toad

$ git config --global user.name "John Doe"
$ git config --global user.email [email protected]

Source : https://git-scm.com/book/en/v2/Getting-Started-First-Time-Git-Setup | Last Update : Sat, 15 Feb 20

Question : where is global config file for git

Answered by : sagar-shrestha

git config --global --edit
# It will open git config file and you can make necessary changes

Source : | Last Update : Fri, 04 Jun 21

Question : git global config location

Answered by : famous-flatworm-06w41cjggpby

To track down the file holding each config option set on your own system: git config --list --show-origin
Generally, there are three configs: * git config puts stuff in <repo root>/.git/config by default * git config --global puts stuff in <user home>/.gitconfig * On Linux/macOS, this means ~/.gitconfig * On Windows, this means %HOMEDRIVE%%HOMEPATH%\.gitconfig (not %USERPROFILE%\.gitconfig; these are not always the same) * git config --system puts stuff in a global config file shared by all users * On Linux, it's /etc/gitconfig * On macOS, it's /Applications/Xcode.app/Contents/Developer/usr/etc/gitconfig * On Windows, it's <wherever you installed Git>/etc/gitconfig

Source : https://stackoverflow.com/a/2115116/470925 | Last Update : Mon, 10 May 21

Answers related to git global config location

Code Explorer Popular Question For Shell