Git Commands

This page contains a list of GIT commands and explanations on how to use them on the command line. The Scenarios section describes how the combination of git commands can be used in different scenarios.The Git Cheatsheet section contains a list of the git commands that are frequently used and can be downloaded as a PDF document.


Git Installation & Setup
The Git Installation and Setup scenarios are performed only once as part of the initial setup of git on a specific computer.

Create Git Repository

There are two distinct ways in Git to create a local repository. The first is to create a new local
repository from scratch and the second is to download/clone an existing repository.

  • Create Local Repository
  • Link Remote Repository
  • Clone Remote Repository

Basic Workflow Usage

The following scenarios describe how a combination of git commands can be used to perform a specific

  • Basic Git Commands (Add, Status, Commit, Log)
  • Remote Repositories (Remote, Push, Pull)
  • Housekeeping (Rename, Move, Delete)
  • Branching
  • History
  • Ignoring Unwanted Files


The Git Cheatsheet can be downloaded from the images below. The Git Cheatsheet (PDF document) contains a list of the git commands that are frequently used. This cheatsheet document is not intended as a complete documented list of all commands and for that you should rather visit the official git documentation page.



Not all the commands and scenarios are documented on this page, only the most frequently used ones. For more information about the git commands, the official documentation can be found at the following link: