DEV Community

Cover image for Understanding Git: A Beginner's Guide to Version Control (With Visuals)

Understanding Git: A Beginner's Guide to Version Control (With Visuals)

Jitendra Choudhary on February 27, 2024

Table of Contents Introduction What is Git? Setting Up Git Pre-installed Git on various operating systems How to download and config...
Collapse
 
jitendrachoudhary profile image
Jitendra Choudhary

Done with reading the article. It's quiz time. Can you answer what is the difference between git pull and git clone?
As both of the commands update the local repository.

Collapse
 
error772169694412f6f profile image
NonStop7721

git clone is the command that created a copy of the entire project from the main branch to local branch.

we use git pull when we already have the project, and we just want to update the newest version from main branch to our branch.

Collapse
 
jitendrachoudhary profile image
Jitendra Choudhary

Well explained 👏

Collapse
 
jcubic profile image
Jakub T. Jankiewicz • Edited

It's been a while since I had a fresh installation of Linux, but I don't think it has git preinstalled. You need to install it first and each destruction use different way of installing packages.

Collapse
 
jitendrachoudhary profile image
Jitendra Choudhary

Absolutely true! The popularity of Linux distributions varies, and even if Git is included in the installation, it often needs updating. Each distro has its own package management system, making commands a bit different.

Collapse
 
jcubic profile image
Jakub T. Jankiewicz

I have never seen git installed by default, Linux distributions never have developer tools installed.

Thread Thread
 
jitendrachoudhary profile image
Jitendra Choudhary

This is a official GitHub blog "github.com/git-guides/install-git" that claims Git comes installed by default on some popular Linux distro.