explaingit

arslanbilal/git-cheat-sheet

7,350Audience · developerComplexity · 1/5Setup · easy

TLDR

A multilingual quick-reference guide covering the most commonly used Git commands, organized into sections from initial setup through branching, merging, and the Git Flow workflow.

Mindmap

mindmap
  root((git-cheat-sheet))
    Sections
      Setup and config
      Staging and commits
      Branches and tags
      Remote and push
      Merge and rebase
      Undo changes
    Git Flow
      Feature branches
      Release branches
      Hotfixes
    Languages
      Chinese
      Korean
      Greek
      Portuguese
    Audience
      All developers
      Git beginners
Click or tap to explore — scroll the page freely

Code map

Detail Auto

An interactive map of this repo's files and how they connect — its source is parsed live in your browser. Click Visualize to build it.

filefunction / class

Things people build with this

USE CASE 1

Look up the exact Git command to undo a recent commit, push to a remote, or create a branch without searching through full documentation.

USE CASE 2

Share with a new teammate who is learning Git to help them understand the commands they will use every day.

USE CASE 3

Learn the Git Flow branching workflow and the specific commands that go with feature branches, releases, and hotfixes.

USE CASE 4

Find the translated version of the cheat sheet in your preferred language, including Chinese, Korean, Greek, or Portuguese.

Getting it running

Difficulty · easy Time to first run · 5min

In plain English

This repository is a reference guide that organizes the most commonly used Git commands into one document. Git is a version control tool that developers use to track changes in code, collaborate with others, and manage different versions of a project. The cheat sheet is aimed at anyone who works with Git and wants a quick way to look up a command without searching through the full documentation. The content is divided into sections covering the main things you do with Git: initial setup and configuration, creating or cloning a repository, staging and committing changes, viewing history, searching through commits, managing branches and tags, fetching and pushing code to remote servers, merging and rebasing, and undoing changes. Each entry shows the exact command to type, with a short label describing what it does. Some entries include brief warnings, such as a note not to amend commits that have already been shared with others. The guide also covers Git Flow, a structured branching strategy that some teams use to organize their work around releases. Git Flow defines specific branch names and rules for features, releases, and hotfixes, and the cheat sheet lists the commands that go with that workflow. The README is available in multiple languages, including Chinese, Korean, Bengali, Greek, Portuguese, and others, with links to translated versions in the repository. Contributions are welcome: the project accepts fixes for grammar errors, additions of new commands, new translations, and improvements to existing explanations.

Copy-paste prompts

Prompt 1
Using the arslanbilal/git-cheat-sheet as a reference, create a one-page printable PDF cheat sheet of the 20 Git commands I should know as a junior developer, with a one-line description for each.
Prompt 2
I am teaching a workshop on Git. Use the arslanbilal/git-cheat-sheet structure to generate a slide outline covering setup, staging commits, branching, and working with remote repositories.
Prompt 3
Based on arslanbilal/git-cheat-sheet, explain the difference between git merge and git rebase in plain English, and tell me when to use each one.
Prompt 4
Use the Git Flow section of arslanbilal/git-cheat-sheet to walk me through releasing version 1.0 of my project: creating the release branch, finishing it, and tagging the commit.
Open on GitHub → Explain another repo

← arslanbilal on gitmyhub — every repo by this author, as a profile.

Verify against the repo before relying on details.