How to Install and Configure Git?

In this article, you will learn how to Install and Configure Git.

The following section outlines the step-by-step procedure to Install and Configure Git.

Downloading and Installing Git

  1. At first, Visit the official Git website at
  2. After that, choose the appropriate installer for your operating system (Windows, macOS, Linux) and click on the corresponding download link.
  3. Once the download is complete, locate the installer file and run it.
  4. Further, follow the on-screen instructions to complete the installation process. Make sure to review and customize the installation settings if necessary.
Select the Appropriate Installer

You can select the appropriate installer according to the operating system you have.

Select the Setup

Further, if you are installing on Windows then, select a 32-bit installer or 64-bit setup for the installer accordingly.

Run the Setup

Then, click on next.

Select the Location

Also, you can change the default location. So, browse the folder in which you want to install the Git and click on next.

Select the Components you want to install

Then, select the necessary components.

Select Start Menu Folder

Also, select the start menu folder.

Choose the Default Editor

Also, you can choose the editor in which you want to work.

Initial Branch Name

Let the initial branch name decided by Git. So click on next.

Path Environment

For the purpose of accessing it from command line, select the second option.

Secure Shell Client

In order to communicate with remote repositories, you need an SSH (Secure Shell) connection. Therefore, select OpenSSH. Because it is well supported by Git.

HTTP Connections

Actually, HTTPS transport backend is the method by which Git communicates with remote repositories using the HTTPS protocol. So, keep the default open selected.

Line Ending Conversions

Further, for line-ending, keep default and click on next.

Terminal Emulator to Use with Git Bash

Since, by default Git uses MinTTY terminal emulator. So keep the default and click on next.

Default Behavior of Git Pull

Further, keep default for standard behavior of Git pull and click on next.

Credential Helper

When communicating with remote Git repositories, a Git credential helper is a tool that enables Git to securely handle and preserve login credentials, saving you from having to continually enter your username and password. Git communicates with a number of remote services, including GitHub, GitLab, and Bitbucket, all of which demand authentication in order to access private repositories or carry out operations like pushing or pulling code. So, keep the default option and click on next.

File System Caching

After that, click on next button.

Experimental Options

Also, you can enable experimental support and click on Install.


Git will take few minutes to install.

Launch Git Bash

When installation is complete, click on the Finish button. Now you are ready for the Git configuration.

Configuring Git

After successfully installing Git, it’s important to configure it with your personal information. This allows Git to properly identify you as the author of commits.

  1. Open the command line or terminal on your system.
  2. Set your name by executing the following command:
git config --global "Your Name"

Replace “Your Name” with your actual name. This sets your name globally for all Git repositories on your system.

  1. Set your email address by executing the following command:
git config --global ""

Replace “” with your actual email address. Similar to the previous command, this sets your email globally for all Git repositories.

Configuring Git
  1. Optionally, you can configure additional settings such as default text editor, line endings, and more. Refer to the Git documentation for more details.

Congratulations! You have now successfully installed and configured Git on your system. You can now start using Git for version control and collaborate on projects.

Further Reading

How Git Transforms Your Development Process?

Innovative Project Ideas on Cloud Resource Provisioning

Tools for Performing Cloud Resource Provisioning

When should we prefer to React over PHP?

Applications of Terraform

Innovative Project Ideas in Terraform

20+ Interview Questions on Chaos Engineering

Examples of Array Functions in PHP


You may also like...

Leave a Reply

Your email address will not be published. Required fields are marked *