Actions

EmSys

Git - First-Time Git Setup

From EdWiki

First-Time Git Setup

  • The first thing you should do when you install Git is to set your username and e-mail address.
  • This is important because every Git commit uses this information, and it's immmutably baked into the commits you pass around:
git config --global user.name "J.Shankarappa"
git config --global user.email "jshankar@cedt.iisc.ernet.in"
  • You need to do this only once if you pass the --global option.
  • Git will always use that information for anything you do on that system.
  • If you want to override this with a different name or e-mail address for specific projects, you can run the command with out the --global option when you are in that project.