Git ~ Configuration - rohit120582sharma/Documentation GitHub Wiki
You may need to set global or local Git configuration options such as username, or email. The git config
is a helper tool that provides a shortcut to editing raw git config files on disk.
Git stores configuration options in three separate files:
-
Local -
<repo>/.git/config
โ Repository-specific settings -
Global -
/.gitconfig
โ User-specific settings -
System -
$(prefix)/etc/gitconfig
โ System-wide settings
Define the author name and email to be used for all commits for every repository. Make sure itโs the same email you used when you signed up for GitHub or any other cloud storage for your codebase.
$ git config --global --list
$ git config --global user.name <name>
$ git config --global user.email <email>