mirror of
https://github.com/git-learning-game/oh-my-git.git
synced 2024-07-23 02:40:29 +02:00
51 lines
828 B
Plaintext
51 lines
828 B
Plaintext
title = Etichettare dopo
|
|
cards = checkout commit-auto merge reset-hard
|
|
|
|
[description]
|
|
|
|
Ma cosa succede se ti dimentichi di etichettare il corrente commit?
|
|
No c'è problema! Puoi etichettare i vecchi commit tramite
|
|
|
|
git tag <tag-name> <commit-hash>
|
|
|
|
Etichetta il commit "Aggiunta caratteristica 2" con il nome "v1"!
|
|
|
|
---
|
|
tipp1
|
|
---
|
|
tipp2
|
|
---
|
|
tipp3
|
|
|
|
[setup]
|
|
|
|
echo "event 1" > elenco-caratteristiche
|
|
|
|
git add .
|
|
git commit -m "Aggiunta caratteristica 1"
|
|
|
|
echo "event 2" >> elenco-caratteristiche
|
|
|
|
git add .
|
|
git commit -m "Aggiunta caratteristica 2"
|
|
|
|
echo "event 3" >> elecno-caratteristiche
|
|
|
|
git add .
|
|
git commit -m "Aggiunta caratteristica 3"
|
|
|
|
git checkout --detach main
|
|
|
|
[win]
|
|
|
|
# Hai creato una nuova etichetta?
|
|
test "$(git show v1 -s --format=%h)" = "$(git show HEAD~1 -s --format=%h)"
|
|
|
|
[actions]
|
|
|
|
|
|
|
|
[congrats]
|
|
|
|
Motlo bene :)
|