Git Commands Cheat Sheet

Quick reference of the most used Git commands with examples.
Command finder
0 Commands
0 Visible
None Selected
Workflow builder Ready.
Git command library
Command details

Select a command

Choose a command to see when to use it, what to check first, and how risky it is.

-
Before you run it
  • Make sure you are in the correct repository and branch.
Practical Git glossary
Tool Introduction

Use this Git command reference to find everyday commands for branching, commits, stashing, remotes, history, tags, and undo work. Search by task, filter by safety level, copy a command, or generate a short workflow for common team tasks.

The wording is tuned for modern GitHub, GitLab, and Bitbucket workflows used by Western software teams. Commands that can rewrite history or discard files are clearly marked so you can review the risk before pasting them into a terminal.