How to Setup Git for the First Time

Article Outline
  1. 1. Your Identity
Keywords: ,

Some basic setup instructions for using git to manage your code project.

Your Identity

The first thing you should do when you install Git is to set your user name and email address. This is important because every Git commit uses this information, and it’s immutably baked into the commits you start creating:[1]

  • git config --global "John Doe"
  • git config --global [email protected]

You need to do this only once if you pass the --global option, because then Git will always use that information for anything you do on that system. If you want to override this with a different name or email address for specific projects, you can run the command without the --global option when you’re in that project.[1:1]

  1. Title: 1.6 Getting Started - First-Time Git Setup
    Archive: ipfs ↩︎ ↩︎