Answers for "git change global config"


git config global

$ git config --global "John Doe"
$ git config --global [email protected]
Posted by: Guest on February-08-2020

git global config location

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/
    * On Windows, it's <wherever you installed Git>/etc/gitconfig
Posted by: Guest on May-03-2021

git config --global "Server"

cat .gitconfig
Posted by: Guest on October-22-2020

Code answers related to "Shell/Bash"

Browse Popular Code Answers by Language