Git is the most commonly used version control system today and is quickly becoming the standard for version control. Git is a distributed version control system, meaning your local copy of code is a complete version control repository. These fully-functional local repositories make it is easy to work offline or remotely.

Git Commands Cheat Sheet

Git commands are an essential lesson that every developer needs to master at some point. To use the full potential of Git, the popular version control system, you need to know how to use Git commands.

In this tutorial, you will find all the commonly used Git commands as well as a downloadable cheat sheet.

git init [directory]
git clone [repo / URL]
git clone [repo / URL] [folder]
git config --global "[your_name]"
How To Install Git On CentOS 7 With Yum Or Latest Repository

Git released version 2.21 on Feb 24, 2019. This tutorial is for installing the latest version release of Git 2.21 on CentOS/RHEL 7/6.

Let’s walk through the process of installing Git on CentOS 7.


  • A Linux-based system with a CentOS 7 installed
  • A non-root user account with sudo privileges


  • Default package installer, Yum
  • CentOS development tools and default repositories