oh-my-git/levels/it_IT/remotes/problems

34 lines
755 B
Text
Raw Normal View History

2021-09-14 17:03:17 +02:00
title = Problemi
cards = checkout add pull push commit-auto merge
2021-01-07 15:23:14 +01:00
[description]
Entrambi, tu ed il tuo amico, avete lavorato sullo stesso file e volete sincronizare!
2021-01-07 15:23:14 +01:00
[setup yours]
2021-09-14 17:03:17 +02:00
echo "Il capannone delle bici dovrebbe essere ???" > file
2021-01-07 15:23:14 +01:00
git add .
2021-09-14 17:03:17 +02:00
git commit -m "inizio"
2021-01-07 15:23:14 +01:00
git push -u friend main
2021-09-14 17:03:17 +02:00
echo "Il capannone delle bici dovrebbe essere verde" > file
2021-01-07 15:23:14 +01:00
[setup friend]
git checkout main
echo "Il capannone delle bici dovrebbe essere blu" > file
2021-09-14 17:03:17 +02:00
git commit -a -m "versione dell'amico"
2021-01-07 15:23:14 +01:00
[win]
# Fai il commit delle tue modifiche locali.
2021-01-07 15:23:14 +01:00
test "$(git status -s)" = ""
[win friend]
# Quarda il suggerimento dell'amico, trova un compromesso e rimandalo in dietro.
git rev-parse main^ && test "$(git rev-parse main^1^)" = "$(git rev-parse main^2^)"