Git basics

Tag a release

Mark a commit as a version, like v1.0.0, so you can find it and release it later.

Fill these in once
  1. Tag the current commit
    Terminal
    git tag -a v1.0.0 -m "Release v1.0.0"
  2. Push the tag to GitHub
    Terminal
    git push origin v1.0.0

Check it worked

  1. List your tags
    Terminal
    git tag --list
Undo it
  1. Delete the tag here and on GitHub
    Terminal
    git tag -d v1.0.0 && git push origin --delete v1.0.0
  1. Tag the current commit
    Terminal · Ubuntu / Debian
    git tag -a v1.0.0 -m "Release v1.0.0"
  2. Push the tag to GitHub
    Terminal · Ubuntu / Debian
    git push origin v1.0.0

Check it worked

  1. List your tags
    Terminal · Ubuntu / Debian
    git tag --list
Undo it
  1. Delete the tag here and on GitHub
    Terminal · Ubuntu / Debian
    git tag -d v1.0.0 && git push origin --delete v1.0.0
  1. Tag the current commit
    PowerShell
    git tag -a v1.0.0 -m "Release v1.0.0"
  2. Push the tag to GitHub
    PowerShell
    git push origin v1.0.0

Check it worked

  1. List your tags
    PowerShell
    git tag --list
Undo it
  1. Delete the tag here and on GitHub
    PowerShell
    git tag -d v1.0.0; git push origin --delete v1.0.0