Skip to content

Latest commit

 

History

History
34 lines (23 loc) · 1.81 KB

Git_Installation.md

File metadata and controls

34 lines (23 loc) · 1.81 KB

Downloading Git Version Control

Head over to this Site
Click on the button as shown here in this picture.
Downloading Git

This will download Git version Control for your operating system.
If you are on Windows, it will download Windows version
If you are on Mac OS if will download Mac OS version

Installing Git Version Control

After downloading the setup, install it.

While Installing you might run through the following option -
Editor Choice

Select whichever editor you are using, for this tutorial I will be using Atom editor as my default.

Configuring Git Using Git bash

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.

Open Git Bash and run the following commands. Make sure that you put your name & email while executing these commands.

git config --global user.name "John Doe"
git config --global user.email johndoe@example.com

Configuring Git using Git Bash

You can rerun the command if you happen to make any mistakes. We are humans after all & bound to mistake somewhere or other!

Pro Tip: it would be wise to set default editor again using Git Bash. Click here to see which command to run. While making commits, if you forget to put message, it will launch the editor which you have set. By default it launches Vi, which is difficult to use.