Intro to Git

Vivek Chauhan
3 min readSep 16, 2020

Learning Git is as easy as using the tool. The motive of this Git tutorial blog is to omit this dilemma from your mind. I am sure with this Git tutorial blog, you will go brimming through all the concepts.

What is Git — Features of Git

Free and open-source: Git is released under GPL’s (General Public License) open source license. You don’t need to purchase Git. It is absolutely free. And since it is open-source, you can modify the source code as per your requirement.

Speed: Since you do not have to connect to any network for performing all operations, it completes all the tasks really fast. Performance tests done by Mozilla showed it was an order of magnitude faster than other version control systems. Fetching version history from a locally stored repository can be one hundred times faster than fetching it from the remote server. The core part of Git is written in C, which avoids runtime overheads associated with other high-level languages.

Scalable: Git is very scalable. So, if in the future , the number of collaborators increases Git can easily handle this change. Though Git represents an entire repository, the data stored on the client’s side is very small as Git compresses all the huge data through a lossless compression technique.

Reliable: Since every contributor has its own local repository, on the events of a system crash, the lost data can be recovered from any of the local repositories. You will always have a backup of all your files.

Secure: Git uses the SHA1 (Secure Hash Function) to name and identify objects within its repository. Every file and commit is check-summed and retrieved by its checksum at the time of checkout. The Git history is stored in such a way that the ID of a particular version (a commit in Git terms) depends upon the complete development history leading up to that commit. Once it is published, it is not possible to change the old versions without it being noticed.

Economical: In the case of CVCS, the central server needs to be powerful enough to serve the requests of the entire team. For smaller teams, it is not an issue, but as the team size grows, the hardware limitations of the server can be a performance bottleneck. In the case of DVCS, developers don’t interact with the server unless they need to push or pull changes. All the heavy lifting happens on the client-side, so the server hardware can be very simple indeed.

Supports non-linear development: Git supports rapid branching and merging and includes specific tools for visualizing and navigating a non-linear development history. A core assumption in Git is that a change will be merged more often than it is written, as it is passed around various reviewers. Branches in Git are very lightweight. A branch in Git is only a reference to a single commit. With its parental commits, the full branch structure can be constructed.

Easy Branching: Branch management with Git is very simple. It takes only a few seconds to create, delete, and merge branches. Feature branches provide an isolated environment for every change to your codebase. When a developer wants to start working on something, no matter how big or small, they create a new branch. This ensures that the master branch always contains a production-quality code.

In this blog, I will talk about some Git Commands that you will be using frequently while you are working with Github.

CHEATSHEET OF COMMANDS
Git Cheat Sheet

These commands are used to get access to GitHub. And help you to get remote of your Github account and repos.

--

--

Vivek Chauhan
0 Followers

Web Developer | Programmer | Competitive Programmer | 5* Python Hacker Rank | 5* Problem Solving Hacker Rank