1001Ferramentas
🌿 Dev

Git Cheatsheet

Searchable list of the most-used git commands — config, commit, branch, merge, rebase, stash, log, remote, reset. With copyable examples. Everything in your browser.

The most-used git commands

You use git every day and there's still always that one command nobody remembers: a rebase, a stash, some very specific reset. Here the most-used commands sit in a list you can search, so when the doubt hits you find what you're after right there.

The everyday topics are all covered. Config, commit, branch, merge, rebase, stash, log, remote, reset, each comes with a short note and examples ready to copy. Filter for what you need, copy the command and move on, instead of opening a search every time.

It runs straight in the browser, nothing to install. A reference to keep open beside your terminal, whether you're a beginner or a git veteran.

Frequently asked questions

Where is interactive rebase?
Not here. The list gathers 33 everyday commands across eight blocks, running from config, repository and commit to branch and merge, remote and sync, stash, reset and revert, and tag. The only rebase in it is git pull --rebase, filed under remote and sync. Interactive rebase, cherry-pick, bisect, submodules and worktrees were left out. The filter is the quick way to check: type the subcommand name, and if no block is left on screen, it was not included.
What separates the reset --soft and --hard sitting side by side?
With --soft the commit goes away and the changes land back in the staging area, ready for a fresh commit. With --hard the commit and the working-tree changes both go. The difference that matters once you regret it: anything already committed lingers in the reflog for a few weeks and comes back through a reset --hard pointing at the old hash, while work that was never committed is gone for good. Both rewrite history, so on a branch you already pushed, git revert, listed just below, is the safe move.
I clicked Copy and nothing reached the clipboard
The button relies on the browser clipboard API, which needs an https page or localhost plus a focused tab, and it fails quietly, with no warning at all. When that happens, select the command with the mouse and copy from the keyboard. One more detail: what gets copied is the exact line, sample placeholders included, such as the url in git clone or the file name in git add. Swap each of them for your own value before running it.

Related Tools