How to setup Git the proper way! — Part 1: Installation
Tags: gitforbeginners, github, installation, git
Published: 2021-02-20 17:17:23

---
title: How to setup Git the proper way! — Part 1: Installation
published: true
date: 2021-02-20 15:55:28 UTC
tags: gitforbeginners,Github,installation,git
canonical_url: https://medium.com/@techyarsal/how-to-setup-git-the-proper-way-part-1-installation-bc7b3652fb64
---

### How to setup Git the proper way! — Part 1: Installation

![](https://cdn-images-1.medium.com/max/1024/0*T37Ot45DMOiH1DKC)<figcaption>Photo by <a href="https://unsplash.com/@yancymin?utm_source=medium&amp;utm_medium=referral">Yancy Min</a> on <a href="https://unsplash.com?utm_source=medium&amp;utm_medium=referral">Unsplash</a></figcaption>

Hello everyone. Today, we will see how you can set up [**Git**](https://git-scm.com/) on your system and then link it to your [**Github**](https://github.com/) account using [**SSH**](https://en.wikipedia.org/wiki/SSH_%28Secure_Shell%29), so that you can push the code directly to your [**Github**](https://github.com/) remote repository, really easily.

### Before we start:

I have divided the overall process into three major parts. This post explains the first part, where we will see process the of installing [**Git**](https://git-scm.com/) on the system.

**Note: This post is only meant for Windows users**, as in most cases, **Git** is not installed on their system. **If you are a Linux or Mac user**, or if you have it installed already, you can simply skip this part and start with the [**part-2**][part-2] of this series.

### What is git?

According to their [website](https://git-scm.com/):

> “Git is a [free and open source](https://git-scm.com/about/free-and-open-source) distributed version control system designed to handle everything from small to very large projects with speed and efficiency.

> Git is [easy to learn](https://git-scm.com/doc) and has a [tiny footprint with lightning fast performance](https://git-scm.com/about/small-and-fast). It outclasses SCM tools like Subversion, CVS, Perforce, and ClearCase with features like [cheap local branching](https://git-scm.com/about/branching-and-merging), convenient [staging areas](https://git-scm.com/about/staging-area), and [multiple workflows](https://git-scm.com/about/distributed).”

### About Github:

[**Github**](https://github.com/) is the most popular code-sharing platform, used by millions of developers around the world. I will not bore you with a long list of all the features & everything, you can learn about them on [**Github**](https://github.com/) **’s** official website.

**From here on, I will assume that you know what** [**Git**](https://git-scm.com/) **or** [**Github**](https://github.com/) **is, and you are ready to move forward.**

### Git Installation:

These are the steps to install [**Git**](https://git-scm.com/) on your Windows machine:

1. Just go to [**Git’s Website (https://git-scm.com/**](https://git-scm.com/)**)** and click on [**Downloads**](https://git-scm.com/downloads/).
2. Select the [**Windows**](https://git-scm.com/download/win) installer. Once you do that, the download should start automatically. If it doesn’t, just click on **click here to start download manually ** link.
3. When the download is complete, simply click on the downloaded file to **start the installer**.
4. There are many things that you can configure during the installation process if you want. Feel free to change them according to your needs, or just **leave the defaults** and click on next a couple of times to get it installed.
5. When the installation is complete, just open up the **Git Bash** terminal, which should be installed with [**Git**](https://git-scm.com/).
6. **Run the following command** and make sure you get the current version number of the git utility:

```
$ git --version
```

### Finally:

![](https://cdn-images-1.medium.com/max/1024/0*kAFUsom6YAZ0p5Tw)<figcaption>Photo by <a href="https://unsplash.com/@enginakyurt?utm_source=medium&amp;utm_medium=referral">engin akyurt</a> on <a href="https://unsplash.com?utm_source=medium&amp;utm_medium=referral">Unsplash</a></figcaption>

If you follow along and get the version of git utility, then [**Git**](https://git-scm.com/) is successfully installed on your system. Now you are all set to go to the [**next section**][part-2], where we link it up with our [**Github**](https://github.com/) account.

[**Click here to go to the next post.**][part-2]

[part-2]: https://dev.to/techyarsal/how-to-setup-git-the-proper-way-part-2-setting-up-ssh-key-mfb