Git Cheatsheet

Git Cheatsheet

Quick reference for common Git commands

git init

Initialize a new Git repository

Setup
git clone <url>

Clone a remote repository

Setup
git config --global user.name "name"

Set global username

Setup
git config --global user.email "email"

Set global email

Setup
git status

Show working tree status

Snapshot
git add <file>

Stage file changes

Snapshot
git add .

Stage all changes

Snapshot
git commit -m "message"

Commit staged changes

Snapshot
git reset <file>

Unstage a file

Snapshot
git reset --hard

Discard all uncommitted changes

Snapshot
git stash

Temporarily save changes

Snapshot
git stash pop

Restore stashed changes

Snapshot
git branch

List all local branches

Branch
git branch <name>

Create a new branch

Branch
git checkout <branch>

Switch to a branch

Branch
git checkout -b <branch>

Create and switch to branch

Branch
git branch -d <branch>

Delete a branch

Branch
git switch <branch>

Switch branches (modern)

Branch
git merge <branch>

Merge branch into current

Merge
git rebase <branch>

Rebase current branch

Merge
git cherry-pick <commit>

Apply specific commit

Merge
git remote -v

Show remote repositories

Remote
git remote add origin <url>

Add remote origin

Remote
git push origin <branch>

Push to remote

Remote
git pull

Pull from remote

Remote
git fetch

Fetch from remote without merging

Remote
git log --oneline

Compact commit history

Log
git log --graph

Branch graph history

Log
git diff

Show unstaged changes

Log
git diff --staged

Show staged changes

Log
git show <commit>

Show commit details

Log
git revert <commit>

Create new commit undoing changes

Undo
git reset HEAD~1

Undo last commit (keep changes)

Undo
git reset --hard HEAD~1

Undo last commit (discard changes)

Undo
git clean -fd

Remove untracked files

Undo
git tag

List all tags

Tag
git tag <name>

Create lightweight tag

Tag
git tag -a <name> -m "msg"

Create annotated tag

Tag
git push --tags

Push tags to remote

Tag

What is Git Cheatsheet?

A practical online tool that helps you complete common data processing and conversion tasks quickly. Everything runs in your browser, so your data never leaves your device. Whether you are a professional handling work tasks, a student completing assignments, or just someone who needs to get things done, this tool has you covered.

Use Cases5 scenarios
  • Daily work and study tasks
  • Data processing and conversion
  • File format transformation
  • Batch task processing
  • Quick prototyping
How to Use4 steps
  1. 1Open the tool page
  2. 2Input or upload your data
  3. 3Click the process button
  4. 4View and copy the result
Features8 features
  • Completely free
  • No account needed
  • Runs in your browser
  • Your data stays private
  • Responsive design
  • One-click operations
  • Real-time processing
  • Multi-device support
FAQ6 questions
What is Git Cheatsheet?

An online Git Cheatsheet. Fast, secure, and easy to use. Supports multiple input formats with one-click copy or download. All operations run locally in your browser — no uploads.

Is Git Cheatsheet free?

Yep — completely free. No accounts, no paywalls, no catch. Just open the page and go.

Does my data get sent to a server?

Nope. Everything runs right in your browser. Your data never leaves your device.

Does it work on my phone?

Absolutely. Works great on phones, tablets, and desktops alike.

How fast is the processing?

For typical data sizes, processing usually completes instantly. Larger data may take a few seconds depending on your device performance.

Do I need to be online?

You need the internet to load the page the first time. After that, all processing happens locally and it works offline.