How to Git – Download & Install Git

Git is a version control system for tracking changes in computer files and coordinating work on those files among multiple people. It is primarily used for software development, but it can be used to keep track of changes in any files.

Version Control System (VCS) is the management of changes to documents, computer programs, large web sites, and other collections of information.

Git originates from the Linux kernel development and was founded in 2005 by Linus Torvalds. The core of Git was originally written in C programming language, but Git has also been re-implemented in other languages, e.g., Java, Ruby and Python.

In this tutorial, we are going to learn how to install and configure Git VCS. Let’s dive into the installation.

Git Installation on Windows

Download Git VCS for windows from https://git-scm.com/downloads.

Once you finish the download,  Double click on setup file and click on “Run. Click next to continue.

 

Git-Download & Install

 

Select installation directory location and click next to continue.

 

Download & Install Git

 

Select components that you want to install. Here we are using default components. Click next continue.

 

Download & Install Git

 

Adjust your PATH environment allows you to run Git either from Git Bash or from Windows command prompt. Using Git Bash is a great option. Click Next to continue.

 

Download & Install Git

 

Configure the line ending conversions by selecting one of line ending option. Here, we use windows style. Click Next to continue.

 

Download & Install Git

 

Select terminal emulator to use with Git Bash. Click next to continue.

 

Download & Install Git

 

Enable features you want to install from extra option tab. Click next to continue.

 

Download & Install Git

 

Once you finish, click install button to install Git setup.

 

Download & Install Git

 

Once you complete the installation, Launch the Git or open it manually from the start menu.

 

Download & Install Git

 

Configure Username and Email

You have to configure your user and email address to be able to commit to a Git repository because this information is stored in each commit.

Command
     $ git config --global user.name "Firstname Lastname"
     $ git config --global user.email "youremail@example.com"

The git config command allows you to configure your Git settings. These settings can be system-wide, user or repository specific.

 

Configure Username & Password
     $ git config --global user.name "lauyou"
     $ git config --global user.email "dev@lauyou.com"

 

The $ git config -- list show you the git configuration setting including user and email at the end.

 

Git List Command
    $ git config --list
    core.symlinks=false
    core.autocrlf=true
    core.fscache=true
    color.diff=auto
    color.status=auto
    color.branch=auto
    color.interactive=true
    help.format=html
    http.sslcainfo=C:/Program Files/Git/mingw64/ssl/certs/ca-bundle.crt
    diff.astextplain.textconv=astextplain
    rebase.autosquash=true
    credential.helper=manager
    user.name=lauyou
    user.email=dev@lauyou.com
    filter.lfs.clean=git-lfs clean -- %f
    filter.lfs.smudge=git-lfs smudge -- %f
    filter.lfs.required=true
    core.repositoryformatversion=0
    core.filemode=false
    core.bare=false
    core.logallrefupdates=true
    core.symlinks=false
    core.ignorecase=true

 

Muhsin Yakkiparamban

Muhsin Yakkiparamban is the co-founder of Lauyou Learning. Muhsin holds Bachelor Degree in Civil Engineering from KMCT Calicut.

You may also like...