500+ Tools 100% Free Forever No Subscriptions No Sign Up Required
  1. Home
  2. Git Commands Cheat Sheet
Git Command Cheat Sheet – Copy & Use Instantly | FreeToolr
Git Cheat Sheet

Free Git Command Cheat Sheet

A clean, list‑style reference. Copy any Git command with a single click. No signup, no clutter – just the commands you need.

40+
Commands
7
Categories
Instant
Copy
Free
Forever
Showing all Git commands

Getting Started (7 commands)

Initialise repositories, clone projects, and check the status of your working directory.

git init Create a new Git repository in the current folder.
git clone <url> Clone a remote repository to your local machine.
git status Show the working tree status (modified, staged, untracked).
git add <file> Stage specific changes for the next commit.
git add . Stage all changes in the current directory.
git commit -m Commit staged changes with a descriptive message.
git log Show the commit history.

Branching & Merging (7 commands)

Create, switch, and merge branches seamlessly.

git branch List all local branches.
git branch <name> Create a new branch.
git checkout <name> Switch to an existing branch.
git checkout -b <name> Create and switch to a new branch.
git merge <branch> Merge the specified branch into the current branch.
git branch -d <name> Delete a local branch (safe).
git branch -D <name> Force delete a local branch.

Remote Repositories (7 commands)

Push, pull, and manage connections to remote repositories.

git remote -v List all remote repositories with URLs.
git remote add <name> <url> Add a new remote connection.
git fetch <remote> Download objects and refs from a remote.
git pull <remote> <branch> Fetch and merge changes from a remote branch.
git push <remote> <branch> Push commits to a remote branch.
git push -u <remote> <branch> Push and set upstream tracking.
git remote remove <name> Remove a remote connection.

Stashing & Cleaning (5 commands)

Temporarily save changes and clean your working directory.

git stash Stash current changes (tracked files).
git stash pop Apply the most recent stash and remove it.
git stash list List all stashes.
git stash drop Discard the most recent stash.
git clean -fd Remove all untracked files and directories.

Undoing Changes (5 commands)

Revert commits, unstage files, and discard local modifications.

git revert <commit> Create a new commit that reverts the specified commit.
git reset <file> Unstage a file while keeping its changes.
git reset --hard Reset everything to the last commit (lose all uncommitted changes).
git checkout -- <file> Discard changes in a working file.
git restore <file> Restore a file to its last committed state.

History & Logs (6 commands)

Inspect commit history, diffs, and blame information.

git log --oneline Compact commit history.
git log --graph --oneline Show branch graph with compact history.
git diff Show unstaged differences.
git diff --staged Show staged changes ready to commit.
git blame <file> Show who last modified each line of a file.
git show <commit> Display details of a specific commit.

Tags & Releases (5 commands)

Mark important points in your history (releases).

git tag List all tags.
git tag <tagname> Create a lightweight tag.
git tag -a <tagname> Create an annotated tag.
git push --tags Push all tags to the remote.
git tag -d <tagname> Delete a local tag.

Every Git Command You’ll Ever Need

From the very first init to complex merges and rebases – copy any command instantly and get back to coding.

No signup, no ads. Just a clean, searchable cheat sheet that stays out of your way.

100% Free Forever
No Registration
40+ Commands
One‑click copy
Search by name or description
Works on all OS
Browse All Commands How to Use This Sheet
The most complete Git cheat sheet – copy, paste, commit.

Everything You Need in a Git Cheat Sheet

This cheat sheet gives you every essential Git command, clearly explained and grouped by topic. No more googling the same commands over and over.

All commands are presented in a clean, readable list. Just click the “Copy” button and paste the command directly into your terminal.

No account, no data collection, no distractions. It’s just a beautifully designed developer resource.

About the FreeToolr Git Cheat Sheet

What Is This Git Cheat Sheet?

It’s a hand‑picked collection of 40+ Git commands that every developer uses daily. Each command comes with a short, plain‑English explanation so you always know what it does.

Why Use This Cheat Sheet?

It saves you time, keeps your workflow smooth, and helps beginners learn Git faster. No ads, no signup – just commands ready to copy.

Key Features of This Cheat Sheet

One‑Click Copy

Every command has a dedicated copy button – no need to select or highlight anything.

Search & Filter

Type anything – command name, description, or category – and instantly see matching results.

7 Logical Categories

Getting started, branching, remote, stashing, undoing, history, and tags – all neatly separated.

Copy on Any Device

Fully responsive design – works perfectly on desktop, tablet, and mobile.

Beginner Friendly

Every command is explained in simple terms – perfect for those new to Git.

Always Free

No paywalls, no signup – a truly free resource for the developer community.

How to Use This Git Cheat Sheet

1. Find Your Category

Click any category chip (e.g., “Branching & Merging”) or scroll down to the section you need.

2. Read the Description

Hover over a command row to see it highlighted. The description tells you exactly what the command does.

3. Click “Copy”

Press the green Copy button next to any command. The command is instantly saved to your clipboard.

4. Paste into Terminal

Go to your terminal, paste the command, replace any placeholders, and hit Enter.

5. Search if You’re Stuck

Use the search bar (Ctrl+K) and type a keyword. The sheet filters instantly.

6. Bookmark for Later

Save this page – it’s always online and updated.

Benefits of Using This Cheat Sheet

  • Speed up your workflow – no more typing commands from memory or hunting through docs.
  • Reduce mistakes – copy the exact syntax and avoid typos that break your Git flow.
  • Learn Git faster – clear descriptions help beginners understand what each command does.
  • Always available – bookmark the page and access it instantly, even on your phone.
  • No distractions – clean, ad‑free layout lets you focus on the commands.
  • Community approved – the commands are the same ones developers use every day.

Who Should Use This Git Cheat Sheet

Developers

Keep essential commands at your fingertips while coding.

Students

Learn Git quickly with clear, beginner‑friendly explanations.

Teams

Share the sheet with your team so everyone uses Git the same way.

DevOps Engineers

Quick reference during deployments and pipeline work.

Popular Git Commands

git init git clone <url> git add . git commit -m git push origin main git pull

Frequently Asked Questions

Yes, 100% free. No registration, no hidden fees. Use it as much as you like.
No. Just open this page, search for a command, and copy it directly into your terminal.
Absolutely. Git commands work the same way across all major operating systems.
Click the "Copy" button next to any command. It instantly copies the command to your clipboard.
Yes. Every command listed is a standard Git operation. Always read the description to understand what it does.
Definitely. We have grouped commands logically and each one comes with a plain‑English description.
We regularly update the sheet. If something is missing, feel free to reach out.
Never. This is a static resource – no inputs, no storage, complete privacy.
It is a quick reference for everyday commands, not a full manual. Perfect when you just need a syntax reminder.
You can print the page or save it as a PDF. The live copy feature works only while you are online.

Stop memorising – start copying

Use this cheat sheet whenever you need a Git command. No signup, completely free.

Stay Updated with FreeToolr

Get new AI tools, SEO resources, calculators, prompts and free templates delivered to your inbox. No spam, unsubscribe anytime.

Weekly Updates New Tool Alerts Free Resources

By subscribing, you agree to our Privacy Policy. No spam, ever.

Successfully Subscribed!

Thank you for joining the FreeToolr community. Check your inbox for a confirmation email.

500+
Free Online Tools
And growing weekly
500+
AI Powered Tools
ChatGPT, Claude & Gemini
300+
Free Guides & Tutorials
Learn by doing
50+
Tool Categories
Organized for you
100%
Completely Free
No hidden costs
No
Signup Required
Start instantly
500+ Free Tools
Millions of Users
Privacy Focused
No Registration
Works on Mobile
Fast Processing
Worldwide Access
Copyright © 2018-2026 FreeToolr. All rights reserved. Managed by Dotdunia Technologies
Made with for creators, developers, marketers and businesses.