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.
Select installation directory location and click next to continue.
Select components that you want to install. Here we are using default components. Click next continue.
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.
Configure the line ending conversions by selecting one of line ending option. Here, we use windows style. Click Next to continue.
Select terminal emulator to use with Git Bash. Click next to continue.
Enable features you want to install from extra option tab. Click next to continue.
Once you finish, click install button to install Git setup.
Once you complete the installation, Launch the Git or open it manually from the start menu.
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.
$ git config --global user.name "Firstname Lastname" $ git config --global user.email "email@example.com"
git config command allows you to configure your Git settings. These settings can be system-wide, user or repository specific.
$ git config --global user.name "lauyou" $ git config --global user.email "firstname.lastname@example.org"
$ git config -- list show you the git configuration setting including user and email at the end.
$ 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 email@example.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