Git – Version Control System

Git – Version Control System

Git is a Version Control System which helps to track changes in source code during software development.

Git was written in the programming language C. Later it is re-implemented in other languages like Java, Ruby, and Python.


Git was originated from the Linux kernel development. It is open-source, so we can download its source code and can make changes according to our requirements. In CVS or SVN, one single place for the full version history of the software. But in the case of Git, every developer’s working copy of the code is also a repository that can contain the full history of all changes.

Before starting with the commands and operations, first, you have to understand the primary motive of Git. The primary motive of Git is to manage the set of files as they change over time. Git stores this information in Git repository which is the core of Git.

Some Git Basic commands :

  • Branch

A branch is a unique set of code changes with a unique name. That means each repository can have one or more branches.

We can create a branch using ‘git branch’ command: $ git branch branch-name

  • Commit

We are using the “commit” command to save your changes to the local repository.

‘git commit’ command: $ git commit -m “commit message”

  • Push

For uploading local changes to a master repository, ‘push’ is most commonly used.

‘git push’ command: $ git push origin master

  • Pull

To download and integrate remote changes, we are using the ‘pull’ command.

‘git pull’ command: $ git pull origin master

  • Merge

To integrate changes from another branch, we use “merge” command.

‘git merge’ command: $ git merge branch-name

  • Clone

The ‘clone’ command is used to a copy of an existing Git repository.

‘git clone’ command: $ git clone repository.

What do you think? Is it new learning for you? Let us know the comments or lift queries and discussions over to our Twitter or Facebook.