Git Config


Git Config

The git-config command allows global options to be retrieved and set for a repository.

See Git documentation for comprehensive details of this git command.

git config --list

Will display the attributes like user name, email address, and others attributed to a git installation.

git config --global user.email "[email protected]"

Changes the user.email to the email address in quotation marks

.gitconfig file

Values assigned with the git config command are stored in a hidden file named .gitconfig in the home directory.

This article needs improvement. You can help improve this article. You can also write similar articles and help the community.