Git Command Finder

Pick what you want to do and get the exact git command, with a plain-English explanation.

Frequently asked questions

What are the ?

Placeholders you replace with your own value — with a branch name, with a path, with a commit hash.

What's the difference between reset and revert?

reset rewrites history by moving the branch pointer (fine for local, unpushed work). revert adds a new commit that undoes an old one, which is safe to use on commits others have already pulled.

Why use --force-with-lease instead of --force?

It force-pushes only if your view of the remote is up to date, so you won't accidentally overwrite a teammate's commits.