gitpractice.dev

brewly — Ch.8 · Publish and remove tags

Exercise 2 of 5

Before you start

Tags are pushed separately

git push sends commits, not tags. Push a tag by its name. git push --tags sends all of them, private ones included, so think before using it.

A published tag is something others rely on. Only delete one that is clearly a mistake, in both places.

git tag
list your tags
git push origin <tag>
publish one tag
git push origin --delete <tag>
delete a tag on the server
git tag -d <tag>
delete it on your computer
You can reopen this any time with “Lesson”.

Continue on a desktop

Typing git on a small screen is no fun. Open this page on a laptop or desktop to practise.

Back to the path