Git: The Ultimate Guide

Jevin Morad
1 min readApr 26, 2024
Image of git

Download git:

Here is the link to download git bash.

Git — Downloads (git-scm.com)

Set Environment: Access Git from your CMD

Run this command in your CMD to check that the git has been installed or not.

git --version

Add Your Identity:

This is important because every Git commit uses this information, and it’s immutably baked into the commits you start creating.

$ git config --global user.name "Josh Buttler"
$ git config --global user.email buttler@example.com

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.

Checking Your Settings:

You can use the git config — list command to list all the settings Git can find at that point:

$ git config --list
user.name=Josh Buttler
user.email=buttler@example.com
...

You can also check what Git thinks a specific key’s value is by typing git config <key>

git config user.name
Josh Buttler

Click here to check more git commands.

--

--