Skip to content

Git ~ Configuration

Rohit Sharma edited this page Sep 25, 2020 · 4 revisions

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>

Clone this wiki locally