FahamLah

Commands

git tag

git tag [-a <name> -m <msg>] [<commit>]

Risk: Safe

What it does

Puts a name that never moves on a commit, like v1.0.

When to use it

To mark a release.

Example

$ git tag -a v1.0 -m "First release"

Tag this commit as version 1.0, with a note.

$ git tag

List your tags.

$ git push origin v1.0

Send one tag to GitHub.

$ git tag -d v1.0

Delete a tag on your computer.