RSS Amplifier

Blog on zzamboni.org · Apr 17, 2015

Three levels of GIT config

0
Sign in to vote or save

Diego Zamboni · zzamboni.org

via http://www.codinginahurry.com/2011/02/05/three-levels-of-git-config/

There are 3 levels of git config; project, global and system.

      • project: Project configs are only available for the current project and stored in .git/config in the project's directory.
      • global: Global configs are available for all projects for the current user and stored in ~/.gitconfig.
      • system: System configs are available for all the users/projects and stored in /etc/gitconfig.

Create a project specific config, you have to execute this under the project's directory.

git config user.name "John Doe"

Create a global config

git config --global user.name "John Doe"

Create a system config

git config --system user.name "John Doe"

And as you may guess, project overrides global and global overrides system.


Read the original on zzamboni.org

Comments

Nothing yet. Say the first thing.

    Sign in to join the conversation.