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.


Options

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

Sign up

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>

โš ๏ธ **GitHub.com Fallback** โš ๏ธ