Hands on Git-Part 01

Lasith Jayalath
3 min readApr 26, 2019

--

With these articles I will try to explain the basics of git from the scratch. As Part 01 I will discuss about the git installation on both the Windows and Linux platforms.

Git Installation on Windows

Step 01-You have to download the latest git for the Windows installer.

Step 02-Then click on the downloaded installer in order to start the installation.

Step 03-It will pop-up asking “Do you want to allow this app to make changes to your device?”, click on Yes in order to carry on the installation.

Step 04-And it is fine to click on Next for all the pop-up screens until the installation confirm pop-up because the default options are very much sensible for most of the users.

Steps of the installation process

Step 05-Click Install.

Step 06-After the installation is over click Finish.

Step 07-Open command prompt. Now we are going to configure your git user name and the email using the following commands one after the other. Make sure to replace your name instead of Marry Hiller and your email instead of marryhiller@gmail.com. And it is recommended to be professional in selecting the user name and email as it will be associated with any commits you make.

git config --global user.name “Marry Hiller”
git config --global user.email "marryhiller@gmail.com"

Git Installation on Linux

Step 01-Open the shell and issue the bellow commands one after the other in order to install git.

sudo apt-get update
sudo apt-get install git

Step 02-You can verify the git version by issuing the bellow command. It will out put the version if the installation was successful.

git --version

Step 03-Now we are going to configure your git user name and the email using the following commands one after the other. Make sure to replace your name instead of Marry Hiller and your email instead of marryhiller@gmail.com. And it is recommended to be professional in selecting the user name and email as it will be associated with any commits you make.

git config --global user.name “Marry Hiller”
git config --global user.email "marryhiller@gmail.com"

Up to now I have explained the installation process in detail. With the Hands on Git Part-2, I will discuss about some core concepts such as development environment and Git repositories and some basic git commands with examples.

Sign up to discover human stories that deepen your understanding of the world.

Free

Distraction-free reading. No ads.

Organize your knowledge with lists and highlights.

Tell your story. Find your audience.

Membership

Read member-only stories

Support writers you read most

Earn money for your writing

Listen to audio narrations

Read offline with the Medium app

--

--

Lasith Jayalath
Lasith Jayalath

Written by Lasith Jayalath

Developer | Cambio | Ex WSO2 | Faculty of Information Technology | University of Moratuwa| Richmondite

No responses yet

Write a response