git tag -a v1.0.0 -m "Release 1.0.0"
git push origin v1.0.0
Annotated tags store the author and date.
Remove untracked files
git clean -n
git clean -fd
-n is a dry run; -fd deletes files and folders.
Stop tracking a file but keep it locally
git rm --cached path/to/file
Then add it to .gitignore.
The calculation happens instantly in your browser. The numbers you enter are not sent to our servers or saved.
How to use the Git Command Helper
Type what you want to do, or pick a category.
Read the command and the note about when to use it.
Copy the command into your terminal.
What does this tool do?
Git has hundreds of commands and options, but most days you need a few dozen. This helper covers everyday work, branching, undoing mistakes, stashing, history, remotes and tags.
Each recipe says when it's safe — for example, amending and resetting rewrite history, so use them only on commits you haven't pushed.
Why use it?
Search in plain English.
Safety notes on risky commands.
One-click copy.
Privacy
The calculation happens instantly in your browser. The numbers you enter are not sent to our servers or saved. There's no account to create and nothing to install.