oh-my-git/levels/tags/remove-tag
2021-03-09 17:15:54 +01:00

54 lines
654 B
Plaintext

title = Removing tags
cards = checkout commit-auto merge reset-hard
[description]
You added way too many tags? No prob! Delete them with
git tag -d <tag-name>
Remove all tags in this repo!
---
tipp1
---
tipp2
---
tipp3
[setup]
echo "event 1" > feature-list
git add .
git commit -m "Adding feature 1"
echo "event 2" >> feature-list
git add .
git commit -m "Adding feature 2"
echo "event 3" >> feature-list
git add .
git commit -m "Adding feature 3"
git tag v1 HEAD~2
git tag v2 HEAD~1
git tag v3
git checkout --detach main
[win]
# Did you remove all tags?
test "$(git tag -l | wc -l)" -eq 0
[actions]
[congrats]
Well done :)