Git cheat sheet

By: Daniel Oh

Updated: 7/6/2017

As an open source distributed version control system, there are many ways to use Git. Cheap local branching, convenient staging areas, and multiple workflows are just a few of the features Git offers developers. In this cheat sheet, author Daniel Oh explains how to use this tool.

This cheat sheet explains how to:​​​​​​

  • Install Git projects.

  • Learn the Git commands sequence.

  • Use the Git command line interface (CLI).

  • Quickstart using Git.

Cheat Sheet Cover

Access Git features now

 

How Git works

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.

Local changes

# Changed files in your working directory
$ git status

 

# Changes to tracked files
$ git commit

 

# Add all current changes to the next commit
$ git add .

Access Git features now

Git commands figure