CmdID

CmdID / Commands

git-config

Manage custom configuration options for Git repositories. tldr-pages

On several platforms

Opens CmdID with your command. It is read in your browser and sent nowhere.

Several platforms

from tldr-pages, CC BY 4.0

Manage custom configuration options for Git repositories. These configurations can be local (for the current repository) or global (for the current user).

Globally set your name or email (this information is required to commit to a repository and will be included in all commits)

git config --global user.name "Your Name|email@example.com"Identify

List local, global, or system configuration entries and show their file location

git config --local --list --show-originIdentify

Set the global value of a given configuration entry (in this case an alias)

git config --global alias.unstage "reset HEAD --"Identify

Get the value of a given configuration entry

git config alias.unstageIdentify

Use an alias

git unstageIdentify

Revert a global configuration entry to its default value

git config --global --unset alias.unstageIdentify

Edit the local Git configuration (.git/config) in the default editor

git config --editIdentify

Edit the global Git configuration (~/.gitconfig by default or $XDG_CONFIG_HOME/git/config if such a file exists) in the default editor

git config --global --editIdentify