POST
Three levels of GIT config
via http://www.codinginahurry.com/2011/02/05/three-levels-of-git-config/
Very nice explanation, via coding in a hurry
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
.
- project: Project configs are only available for the current project and stored in
-
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.
- Related:
- Using Nix's "Single-user Mode" on macOS
- Elvish, an awesome Unix shell
- Fast translation with Google Translator
- Spotlight: use-package, a declarative configuration tool - Mastering Emacs
- Using Multiple SSH Keys with Github
- Fixing Emacs problems with the fish shell
- Moving files between git repositories, preserving history
- Watching for changes (Polling notifications) in Evernote
- How to create a new KVM VM using command line tools
- Find all single-note tags in Evernote
- How to turn off "sort by relevance" in Evernote 5.6.0 Beta
- Mac keyboard shortcuts by Matt Gemmell
- Airmail tip: prevent "Save to Evernote" action from opening the created note
- How to stop com.apple.dock.extra from "using significant energy"
- Top 5 Recommended Google Font Combinations
- HowTo: Changing the available display formats for Evernote's "Insert Date" command
- Changing "message:" protocol handler from Sparrow back to Mail.app
- Fix journal in an HFS+ file system
- How to fix "texexpand error: More than one input file specified" in latex2html
- Installing latex2html under Win7 with cygwin
- LogParser, Event Logs, and Vista - Neil Carpenter's Blog - Site Home - TechNet Blogs
- Setting up a global hotkey to add tasks to Outlook
- GTD tip: clean up physical clutter using ziploc bags
- Making cygwin, Windows and emacs understand the same symlinks
- Hierarchical copying with cfengine3
- Emulate vi's % command (jump to matching parenthesis) in Emacs
- Installing AucTeX on EmacsW32 on Win7/64bit
- Must-Have Windows Software (or Windows Programs that I use) - good coders code, great reuse