Now on Omarchy: read the manual without leaving your desktop

Cheat Sheet

The commands you keep forgetting, with a one-line description and a real example you can copy - 629 across 38 tools. Pick a tool in the sidebar, or search across all of them.

Showing Git (Advanced). Choose another tool in the sidebar, or search all 629 commands.

Git (Advanced)

The Git commands you reach for when things get serious.

13 commands
CommandWhat it doesExample
git rebase -iReorder, squash, or edit recent commits.git rebase -i HEAD~3
git commit --amendFix up the most recent commit.git commit --amend
git cherry-pickApply a single commit onto your branch.git cherry-pick 1a2b3c4
git bisectBinary-search history for the bad commit.git bisect start && git bisect bad && git bisect good v1.0
git reflogSee every move HEAD made - recover lost work.git reflog
git reset (to reflog)Jump back to a remembered state.git reset --hard HEAD@{2}
git worktreeCheck out a second branch in a sibling folder.git worktree add ../hotfix main
git stash push -mStash with a label.git stash push -m "wip login"
git revert -mRevert a merge commit.git revert -m 1 1a2b3c4
git clean -fdDelete untracked files and folders.git clean -fd
git log --grepFind commits by message.git log --grep="login bug"
git blameSee who last changed each line.git blame src/app.js
git diff --stagedReview what you are about to commit.git diff --staged