some levels translated

This commit is contained in:
Luca Canali 2021-09-13 17:54:39 +02:00
parent 331f08b899
commit 68577813c2
11 changed files with 156 additions and 159 deletions

View file

@ -1,14 +1,13 @@
title = Branch from stash
title = Ramo dalla scorta
cards = checkout commit-auto merge reset-hard
[description]
If you want to keep your changes but they don't belong to the main branch, you can easily
create a new branch from your stashed changes. Just use
Se vuoi matenere tutte le modifiche ma non appartengono al ramo principale, puoi facilemnte creare un nuovo ramo dai cambiamenti dalle modifiche nascoste. Usando
git stash branch <branchname> <stash>
If you just want to use the latest stash entry, you can leave the <stash> option empty.
Se vuoi solo usare l'ultimo elemento della scorta puoi lasciare vuota l'opzione <stash>.
Create a new branch from the stashed changes!
Crea un nuovo ramo dalle modifiche nascoste!!
---
tipp1
@ -19,24 +18,24 @@ tipp3
[setup]
echo "Apple Pie:" > recipe
echo "Torta di mele:" > recipe
git add .
git commit -m "creating a recipe"
git commit -m "creata una ricetta"
echo "- 4 Apples" >> recipe
echo "- 4 Mele" >> recipe
git add .
git commit -m "Adding ingredients"
git commit -m "Aggiunto ingredienti"
echo "- 500g Flour" >> recipe
echo "- 500g Farina" >> recipe
git stash push
git checkout main
[win]
# Did you create a new branch from the stashed changes?
# Hai creato un nuovo ramo dai cambiamenti nascosti?
test "$(git branch --list| wc -l)" -ge 2
[actions]
@ -45,4 +44,4 @@ test "$(git branch --list| wc -l)" -ge 2
[congrats]
Stashed changes are in a new branch! :)
I cambiamenti nascosti sono nel nuovo ramo! :)

View file

@ -1,17 +1,17 @@
title = Clear the Stash
title = Pulire la scorta
cards = checkout commit-auto merge reset-hard
[description]
If you want to inspect your stash stack, use the command
Se vuoi controllare la tua scorta, usa il comando
git stash list
Oh, you don't want to keep your stashed changes? There are way too many? Then go ahead and clear the stack with
Oh, non vuoi mantenere i tuoi cambiamenti nella scorta? C'è un modo per farlo? Poi vai avanti e pulisci la scorta con
git stash clear
If you only want to discard a certain stash entry, you can use
Se vuoi solo scartare un certo elemento dalla scorta, puoi usare
git stash drop <stash>
Clear your stash stack!
Pulisci la tua pila di scorta!
---
tipp1
@ -22,30 +22,30 @@ tipp3
[setup]
echo "Apple Pie:" > recipe
echo "Torta di mele:" > recipe
git add .
git commit -m "creating a recipe"
git commit -m "creata una ricetta"
echo "- 4 Apples" >> recipe
echo "- 4 Mele" >> recipe
git add .
git commit -m "Adding ingredients"
git commit -m "Aggiunto ingredienti"
echo "- 500g Flour" >> recipe
echo "- 500g Farina" >> recipe
git stash push
echo "- 200g Sugar" >> recipe
echo "- 200g Zucchero" >> recipe
git stash push
echo "- Pinch of Salt" >> recipe
echo "- Pizzico di sale" >> recipe
git stash push
git checkout main
[win]
# Did you clear your stash stack?
# Hai pulito la tua pila di scorta?
test "$(git stash list | wc -l)" -eq 0
[actions]
@ -54,4 +54,4 @@ test "$(git stash list | wc -l)" -eq 0
[congrats]
All clear! :)
Pulito tutto! :)

View file

@ -1,13 +1,12 @@
title = Merging popped stash
title = Unire la scorta spuntata
cards = checkout commit-auto merge reset-hard
[description]
When you want to reapply your changes but you already continued working on your file, you might get
a merge conflict! Let's practise this situation.
Pop the changes from the stash with
Quando vuoi riapplicare i cambiamenti ma hai continuato a lavora nei tuoi file, potresti ricevere un conflitto di unione! Facciamo un pò di pratica con questa situazione.
Fai uscire le modifiche dalla scorta con
git stash pop
and resolve the merge conflict. Commit the resolved changes and clear the stash stack afterwards.
e risolvi i conflitti di unione. Invia la soluzione dei cambiamenti e dopo pulisci la scorta.
---
tipp1
@ -18,31 +17,31 @@ tipp3
[setup]
echo "Apple Pie:" > recipe
echo "Torta di mele:" > recipe
git add .
git commit -m "creating a recipe"
git commit -m "creata una ricetta"
echo "- 4 Apples" >> recipe
echo "- 4 Mele" >> recipe
git add .
git commit -m "Adding ingredients"
git commit -m "Aggiunti ingredienti"
echo "- 500g Flour" >> recipe
echo "- 500g Farina" >> recipe
git stash push
echo "- Pinch of Salt" >> recipe
echo "- Pizzico di sale" >> recipe
git checkout main
git add recipe
[win]
# Did you resolve the confict and commit?
{ git show HEAD | grep "Flour"; } && { git show HEAD | grep "Salt"; }
# Hai rislto i conflitti ed inviato?
{ git show HEAD | grep "Farina"; } && { git show HEAD | grep "Sale"; }
# Did you clear stash stack?
# Hai pulito la pila di scorta?
test "$(git stash list | wc -l)" -eq 0
[actions]
@ -51,4 +50,4 @@ test "$(git stash list | wc -l)" -eq 0
[congrats]
Yay, you got your changes back! :)
Yay, hai riavuto le tue modifiche in dietro! :)

View file

@ -1,11 +1,11 @@
title = Pop from Stash
title = Pop dalla scorta
cards = checkout commit-auto merge reset-hard
[description]
When you stashed your changes and you want to apply them back to your current working directory, you can use
Quando hai nascosto le tue modifiche e vuoi riapplicarle nella tua directory di lavoro, puoi usare
git stash pop
This will remove the changes from the stash stack. If you also want to keep the changes on the stash stack, use
Questo rimuoverà i cambiamenti dalla pila di scorta. Se voui anche mantenere le modifiche della pila di scorta usa
git stash apply
---
@ -17,24 +17,24 @@ tipp3
[setup]
echo "Apple Pie:" > recipe
echo "Torta di mele:" > recipe
git add .
git commit -m "creating a recipe"
git commit -m "creata una ricetta"
echo "- 4 Apples" >> recipe
echo "- 4 Mele" >> recipe
git add .
git commit -m "Adding ingredients"
git commit -m "Aggiunto ingredienti"
echo "- 500g Flour" >> recipe
echo "- 500g Farina" >> recipe
git stash push
git checkout main
[win]
# Did you pop the changes from the stash stack?
# Hai pop i cambiamenti dalla pila di scorta?
test "$(git stash list | wc -l)" -eq 0
[actions]
@ -43,4 +43,4 @@ test "$(git stash list | wc -l)" -eq 0
[congrats]
Yay, you got your changes back! :)
Yay, hai riavuto i tuoi cambiamenti in dietro! :)