Recall & Review
beginner
How do you delete a local Git tag named
v1.0?Use the command
git tag -d v1.0 to delete the local tag named v1.0.Click to reveal answer
beginner
How do you delete a remote Git tag named
v1.0?Use the command
git push origin --delete tag v1.0 to delete the remote tag named v1.0.Click to reveal answer
beginner
What happens if you delete a local tag but not the remote tag?
The tag will be removed from your local repository but will still exist on the remote repository for others to fetch.
Click to reveal answer
beginner
Why might you want to delete a Git tag?
You might delete a tag if it was created by mistake or points to the wrong commit.
Click to reveal answer
beginner
What is the difference between deleting a tag locally and deleting it remotely?
Deleting locally removes the tag only from your computer. Deleting remotely removes it from the shared repository so others won’t see it.
Click to reveal answer
Which command deletes a local Git tag named
release?✗ Incorrect
The command
git tag -d release deletes the local tag named release.How do you delete a remote tag named
v2.0?✗ Incorrect
Use
git push origin --delete tag v2.0 to delete the remote tag.If you delete a tag locally but not remotely, what happens?
✗ Incorrect
Deleting locally only removes the tag from your computer; it still exists on the remote.
Which of these is NOT a valid reason to delete a Git tag?
✗ Incorrect
Tags are small and do not significantly affect disk space, so freeing space is not a usual reason.
What does the command
git tag -d do?✗ Incorrect
The
git tag -d command deletes a local tag.Explain how to delete a Git tag both locally and remotely.
Think about two steps: one on your computer, one on the shared server.
You got /2 concepts.
Why is it important to delete tags from the remote repository after deleting them locally?
Consider what happens when others fetch from the remote.
You got /3 concepts.