mirror of
https://github.com/git-learning-game/oh-my-git.git
synced 2024-08-20 07:47:19 +02:00
54 lines
655 B
Text
54 lines
655 B
Text
|
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 create a new tag?
|
||
|
test "$(git tag -l | wc -l)" -eq 0
|
||
|
|
||
|
[actions]
|
||
|
|
||
|
|
||
|
|
||
|
[congrats]
|
||
|
|
||
|
Well done :)
|