In this post we’ll learn about Git — What is git and its terminal command in 3 minutes. So let’s start with What is Git.

What is GIT?

In 2005, Linus Torwalds created a GIT.

Git is a free and open source distributed version control system designed to handle everything from small to very large projects with speed and efficiency.

Git is easy to learn and has a tiny footprint with lightning fast performance. It outclasses SCM tools like Subversion, CVS, Perforce, and ClearCase with features like cheap local branching, convenient staging areas, and multiple workflows.



$ brew install git


$ yum -y install git

Find the version of Git

$ git --version

Create repository from scratch

  1. go to folder of the project (which you want to make repository)
  2. run $ git init


  1. run $ git init [project-name]

It will create new local repository with specific name.

Clone existing git repository

  1. goto folder where you want repository folder.
  2. run $ git clone [url]

Make Changes

Check the status of GIT repository

$ git status

This command list all new or modified files

Add files to GIT repository

$ git add [file-name]


If you want to add more than one file

$ git add .

Commit file (Permanently Store in GIT)

$ git commit -m "Message"

Messages are good way to comment on changes.

#github #begineers #programming #git #learning #deep learning

Learn terminal GIT commands in 3 minutes.
1.45 GEEK