git config
$ git config --global user.name "John Doe"
$ git config --global user.email [email protected]
git config
$ git config --global user.name "John Doe"
$ git config --global user.email [email protected]
set git editor
$ git config --global core.editor vim
git config
git config --global user.name "John Doe"
git config --global user.email [email protected]
git config
$ git config --list --show-origin
git config
Edit:
git config -e <optional:--gloabl.--local>
git config remote.origin.url [email protected]:user/repo.git
Show:
git config -l <optional:--show-origin>
└—Show ALL with config level & location (system>global>repo-higher lvl overrides lower)
Level Specific
1. System level (applied to every user on the system and all their repositories)
to view:
git config --list --system (may need sudo)
to set:
git config --system color.ui true
to edit system config file:
git config --edit --system
2. Global level (values specific personally to you, the user).
to view:
git config --list --global
to set:
git config --global user.name xyz
to edit global config file:
git config --edit --global
3. Repository level (specific to that single repository)
to view:
git config --list --local
to set:
git config --local core.ignorecase true (--local optional)
to edit repository config file:
git config --edit --local (--local optional)
git config
Open the command line.
Set your username: git config --global user.name "FIRST_NAME LAST_NAME"
Set your email address: git config --global user.email "[email protected]"
Copyright © 2021 Codeinu
Forgot your account's password or having trouble logging into your Account? Don't worry, we'll help you to get back your account. Enter your email address and we'll send you a recovery link to reset your password. If you are experiencing problems resetting your password contact us