Skip to content

Instantly share code, notes, and snippets.

@Verena1992
Verena1992 / info_presentation_group2.md
Created March 13, 2021 07:53
Git configuration (config), alias, and using the .gitignore file

Git configuration, alias and using the .gitignore file

Git configuration

configuration files to determine non-default behavior:

level file command
system-wide [path]/etc/gitconfig file settings to every user and all repositories $ git config --system
global ~/.gitconfig specific to each user $ git config --global
local .git/config in the Git directory/specific to a repository $ git config --local
@Verena1992
Verena1992 / info_presentation_group2.md
Last active March 13, 2021 07:30
Git configuration (config), alias, and using the .gitignore file

Git configuration, alias and using the .gitignore file

Git configuration

configuration files to determine non-default behavior:

level file command
system-wide [path]/etc/gitconfig file settings to every user and all repositories $ git config --system
global ~/.gitconfig specific to each user $ git config --global
local .git/config in the Git directory/specific to a repository $ git config --local