Skip to content
Home
Dev Convert Generate Finance Calc Design Security Media

More categories

Productivity 23 SEO Tools 18 Network Tools 17 Text Tools 16 Education Tools 15 PDF Tools 11 Mockups 9

Learn and build

GuidesBlogAPI & MCPCheatsheetsChangelog All categories

Browse

439 tools · 15 categories

Start here

Popular tools New this week 11 All tools 439

Categories

Developer Tools 91 Converters 65 Calculators 32 Finance Tools 32 Generators 31 Media Tools 27 Design Tools 25 Security Tools 25 Productivity 23 SEO Tools 18 Network Tools 17 Text Tools 16 Education Tools 15 PDF Tools 11 Mockups 9

Learn and build

Guides Cheatsheets Blog REST API MCP server Changelog

No matches here.

Keep FindUtils free Sponsors fund new tools
  1. Cheatsheets
Guides Blog API & MCP
Sponsor
FindUtils
Sponsor
  1. Home
  2. Cheatsheets
  3. Git & Version Control
  4. Git Commands

Git & Version Control · Cheatsheet

Git Commands Cheatsheet

Common Git commands for setup, commits, branches, merges, history, stashes, and remote operations.

55 commands 8 sections

On this sheet

Setup & Config 5 Staging & Committing 8 Branching & Merging 10 Remote Operations 8 Inspection & Comparison 8 Stashing 7 Undoing Changes 7 Sources 2
Try it in the browser Turn any GitHub username into a FIFA-style dev card rated out of 99 — plus a roast, archetype, commit clock, and five more shareable vibe checks. no login. Open GitHub Dev Card

No entry matches that filter.

Setup & Config

  • git init Initialize a new Git repository
  • git clone <url> Clone a remote repository
  • git config --global user.name "Name" Set your name for all repos
  • git config --global user.email "email" Set your email for all repos
  • git config --list Show all configuration settings

Staging & Committing

  • git status Show working tree status
  • git add <file> Stage a specific file
  • git add . Stage all changes in current directory
  • git add -p Interactively stage hunks
  • git commit -m "message" Commit staged changes with message
  • git commit --amend Modify the last commit
  • git reset HEAD <file> Unstage a file
  • git checkout -- <file> Discard changes in working directory

Branching & Merging

  • git branch List all local branches
  • git branch <name> Create a new branch
  • git checkout <branch> Switch to a branch
  • git checkout -b <branch> Create and switch to new branch
  • git switch <branch> Switch to a branch (modern)
  • git switch -c <branch> Create and switch to new branch (modern)
  • git merge <branch> Merge branch into current branch
  • git branch -d <branch> Delete a merged branch
  • git branch -D <branch> Force delete a branch
  • git branch -m <old> <new> Rename a branch

Remote Operations

  • git remote -v List remote repositories
  • git remote add origin <url> Add a remote repository
  • git fetch Download objects from remote
  • git pull Fetch and merge from remote
  • git pull --rebase Fetch and rebase onto remote
  • git push Push commits to remote
  • git push -u origin <branch> Push and set upstream tracking
  • git push --force-with-lease Force update if the remote matches expectations; background fetches can weaken the default check

Inspection & Comparison

  • git log Show commit history
  • git log --oneline --graph Compact log with branch graph
  • git log -p <file> Show changes over time for a file
  • git diff Show unstaged changes
  • git diff --staged Show staged changes
  • git diff <branch1>..<branch2> Compare two branches
  • git show <commit> Show details of a commit
  • git blame <file> Show who changed each line

Stashing

  • git stash Stash current changes
  • git stash save "message" Stash with a description
  • git stash list List all stashes
  • git stash pop Apply and remove latest stash
  • git stash apply Apply latest stash without removing
  • git stash drop Delete latest stash
  • git stash clear Delete all stashes

Undoing Changes

  • git revert <commit> Create new commit that undoes a commit
  • git reset --soft HEAD~1 Undo last commit, keep changes staged
  • git reset --mixed HEAD~1 Undo last commit, keep changes unstaged
  • git reset --hard HEAD~1 Undo last commit and discard changes
  • git cherry-pick <commit> Apply a specific commit to current branch
  • git rebase <branch> Reapply commits on top of another branch
  • git rebase -i HEAD~3 Interactive rebase for last 3 commits

Sources

  • https://git-scm.com/docs Git reference: repository, branch, history, and remote commands.
  • https://git-scm.com/docs/git-push Git push: force-with-lease conditions and background-fetch limits.

Related cheatsheets

  • Git History and Diffs38 commands
  • Git Branches and Remotes39 commands
  • Gitignore Patterns40 commands

Tools for this work

  • GitHub Dev CardTurn any GitHub username into a FIFA-style dev card rated out of 99 — plus a roast, archetype, commit clock, and five more shareable vibe checks. no login.

From FindUtils

More to explore

Products and services from the team behind FindUtils.

Promote your tool
Featured product seeranks.com SeeRanks — transparent product discovery A public ranking board where paid placement is always labeled and every product keeps its earned position. View SeeRanks Public rank board #1 Sponsored #2 #3 #4 Paid placement is always labeled Free favicon tool emojifavicons.com Emoji Favicons Turn any emoji into a favicon with one HTML line. SVG, PNG or ICO, no sign-up. <link rel="icon" href=".../🦊.svg"> Create a favicon
FindUtils service findutils.com Articles for software tools A sourced article for your channels, or a sponsored FindUtils publication with editorial review. Compare packages Domain portfolio findutils.com Domain names for sale .com.dev.sh.app.io Unused names across dev tools, AI, PDF and commerce. Make an offer. Browse the list Playable ranking towerscore.io TowerScore — stack the skyline Play to climb, or buy a floor. Paid floors are labeled. Open TowerScore

Missing a tool you need?

Tell us what to build next. Most requests ship as a free browser tool, an API endpoint and an MCP tool.

Request a tool
FindUtils

Free, fast utilities. Most tools process your files in the browser; lookup tools say what they send, and pages load analytics and ads.

  • No sign-up for free tools
  • Most tools run in your browser
  • 369 tools on the REST API, 369 on MCP

Tools

DevelopersConvertPDFDesignSecurityAll tools →

Learn

GuidesBlogCheatsheetsChangelog

Build

REST APIMCP serverAPI referenceWorkflowsStatus

FindUtils

AboutLibraries we useSponsorRequest a toolDomains for saleContact
© 2026 FindUtils PrivacyTermsSitemap
Service status
FindUtils

Free, fast utilities that respect your data. Most tools run in your browser.

Build with it

REST APIMCP serverGuidesChangelog

FindUtils

AboutSponsorPrivacyContact
Theme
© 2026 FindUtils Terms
FindUtils
Guides Blog REST API MCP server Changelog

Categories

Developers 91 Convert 65 Calculate 32 Finance 32 Generate 31 Media 27
All 15 categories →

Keep it free

Sponsorship keeps every tool free and funds the new ones we ship each week.

Sponsor Back the project
Tools API Sponsor