↓ Skip to main content
  1. Study/
  2. Computer Programming/
  3. Git/

How to Install Git and Initial Configuration on Windows

·2 mins· loading
Azriel Fidzlie, S.Kom
Author
Azriel Fidzlie, S.Kom
Always Learning New Things
Table of Contents
Git Chapters - This article is part of a series.
Part 1: This Article

What is Git?
#

Git is a version control system used by developers to develop software together. The main function of Git is to manage versions of program source code by marking which lines and code need to be added or changed.

Download Git
#

Please open the official Git website at git-scm.com. Then download Git according to your computer architecture. If you are using 64-bit, download the 64-bit version. Likewise, if you are using 32-bit.

Steps to Install Git on Windows
#

Alright, let’s begin the installation ritual. Please double-click the downloaded Git installer file.

langkah1

The Git license information will appear. Click Next > to continue.

langkah2

Next, choose the installation location. Leave it as default, then click Next >.

langkah3

Next is component selection. Leave it as it is and then click Next >.

langkah4

Next is the Start Menu folder selection. Click Next >.

langkah5

Next is the PATH environment setup. Select the middle option so the git command can be recognized in Command Prompt (CMD). Then click Next >.

langkah6

Next is line ending conversion. Leave it as default, then click Next >.

langkah7

Next is terminal emulator selection. Choose the option at the bottom, then click Next >.

langkah8

Next is extra options selection. Just click Next >.

langkah9

Next is the experimental options selection. Just click Install to begin the installation.

langkah10

Wait a moment while the installation is in progress.

langkah11

Once finished, we can click Finish.

complete

Congratulations, Git is now installed on Windows. To test it, open CMD or PowerShell and type the command git --version.

git-version

Initial Configuration You Need to Do
#

There are several configurations that must be done before starting to use Git, such as setting the name and email.

Please configure it using the following commands.

git config --global user.name "Your Name"
git config --global user.email "Your Email"

Example:

git config --global user.name "0zunu"
git config --global user.email "fidzlieazriel@gmail.com"

Then verify the configuration with the command:

git config --list

If it appears as shown in the following image, the configuration was successful.

list

The core.editor configuration is optional, while the name and email are required.

If you have a GitHub, GitLab, Bitbucket, or other account…

then your username and email should match that account to make integration easier.

Git Chapters - This article is part of a series.
Part 1: This Article

Related


comments powered by Disqus