FindPrompts
Sign InGet Started

Get the best new prompts every week

Join the FindPrompts newsletter — top prompts, fresh mastery guides, and AI workflow tips. Free, no spam.

FindPrompts

The largest AI prompts database. 30,000+ prompts for ChatGPT, Claude, Midjourney, and more.

Categories

  • Marketing
  • Business
  • Writing
  • Coding
  • Education

Platforms

  • ChatGPT
  • Claude
  • Gemini
  • Grok
  • Midjourney

Resources

  • Best AI Prompts
  • Free Tools
  • Prompt Grader
  • Prompt Templatizer
  • AI Token Counter
  • Image Prompt Generator
  • System Prompt Generator
  • Prompt A/B Tester
  • Prompt-to-JSON
  • Headline Generator
  • AI Cost Calculator
  • AI Prompt Improver
  • Prompt Generators
  • Mastery Guides
  • Cheatsheets
  • Automations
  • AI Tools
  • Custom GPTs
  • Blog
  • Affiliate Program

Company

  • Pricing
  • Contact
  • Terms of Service
  • Privacy Policy

© 2026 FindPrompts. All rights reserved.

TwitterGitHub
FindPrompts
FindPrompts

Main

Dashboard
Prompt Library30k+
DiscoverHot
LeaderboardNew
BundlesNew
Prompt Maker
PlaygroundBeta
GeneratorsNew
WorkflowsPro

Personal

Compare
Prompt Improver
Prompt Grader
Templatizer
Token Counter
Image Prompts
System Prompts
A/B Tester
All Free Tools
My Vault
Analytics
Submit Prompt
AI Tools
Guides
Cheatsheets
Automations
Settings
Go Pro

Unlock workflows, API access, and premium features.

Upgrade Now

User

Command Palette

Search for a command to run...

HomeCheatsheetsGit Commands Cheatsheet
Coding5 min

Git Commands Cheatsheet

The git commands developers run all day, plus the recovery moves for when things go wrong. Accurate, copy-paste-ready syntax.

Setup & Basics

git initCreate a new repo in the current directory.
git clone <url>Copy a remote repo locally.
git statusShow staged, unstaged, and untracked changes.
git add <file>Stage changes; git add . stages everything.
git commit -m "msg"Record staged changes with a message.
git log --onelineCompact commit history, one line each.

Branching

git branchList branches; add a name to create one.
git switch <branch>Move to an existing branch (modern alias for checkout).
git switch -c <branch>Create and switch to a new branch.
git merge <branch>Merge another branch into the current one.
git rebase <branch>Replay your commits on top of another branch.
git branch -d <branch>Delete a merged branch (-D to force).

Remotes

git remote -vList configured remotes and their URLs.
git fetchDownload remote changes without merging.
git pullFetch and merge remote changes into the current branch.
git pushUpload commits; -u origin <branch> sets upstream.
git push --force-with-leaseSafely overwrite a remote branch after a rebase.

Undo & Fix

git restore <file>Discard unstaged changes in a file.
git restore --staged <file>Unstage a file, keeping changes.
git commit --amendEdit the most recent commit or its message.
git reset --soft HEAD~1Undo last commit, keep changes staged.
git reset --hard HEAD~1Undo last commit and discard changes (careful!).
git revert <hash>Create a new commit that undoes a past one.
git reflogShow every HEAD move; recover "lost" commits.

Stash & Inspect

git stashShelve uncommitted changes; git stash pop restores them.
git stash listShow all stashes.
git diffShow unstaged changes; --staged for staged ones.
git blame <file>Show who last changed each line.
git cherry-pick <hash>Apply a single commit from another branch.

Related Cheatsheets

Regex Cheatsheet

Common regular expression syntax and ready-to-use patterns.

SQL Quick Reference Cheatsheet

Core SQL syntax for querying, joining, and shaping data.

Want ready-to-use prompts to go with this cheatsheet?

Browse 30,000+ Prompts