From 73f05deeaf42cbc246e3696a404cbb8bf9a5efb7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lelzin=20=CE=BB?= Date: Thu, 20 Apr 2023 11:27:54 -0300 Subject: [PATCH] translate(levels): branches/reorder - Moving branches around --- levels/branches/reorder | 88 +++++++++++++++++++++-------------------- 1 file changed, 46 insertions(+), 42 deletions(-) diff --git a/levels/branches/reorder b/levels/branches/reorder index 1c36c08..6ba688f 100644 --- a/levels/branches/reorder +++ b/levels/branches/reorder @@ -1,89 +1,93 @@ -title = Moving branches around +title = Movendo ramificações entre si cards = checkout commit-auto merge reset-hard [description] -One of your colleagues messed up here, and put the branches in the wrong timelines! +Um de seus colegas errou aqui e colocou as ramificações nas linhas do tempo erradas! -You could delete and re-create these branches - but you can also directly move them to different commits, by using +Você pode excluir e recriar essas ramificações - mas também pode movê-las diretamente para diferentes commits, usando: - git checkout + git checkout -on the branch names, and then using +E logo depois usando: - git reset --hard + git reset --hard -on the commit where you want the branch to be. +No commit onde você quer que a branch fique. -The donut branch is in the right place, but the timeline is still incomplete - make you actually *eat* the donut in that branch! +A branch 'rosquinha' está no lugar certo, mas a linha do tempo ainda está incompleta - faça você *comer* a rosquinha naquela branch! [setup] -echo "You do not have a baguette. +echo "Você não tem uma baguete. -You do not have coffee. +Você não tem café. -You do not have a donut." > you +Você não tem uma rosquinha." > voce git add . -git commit -m "The Beginning" +git commit -m "O começo de tudo." -git checkout -b coffee -echo "You have a baguette. +git checkout -b cafe +echo "Você tem uma baguete. -You do not have coffee. +Você não tem café. -You do not have a donut." > you +Você não tem uma rosquinha." > voce git add . -git commit -m "You buy a baguette" +git commit -m "Você compra uma baguete." -echo "You ate a baguette. +echo "Você comeu uma baguete. -You do not have coffee. +Você não tem café. -You do not have a donut." > you +Você não tem uma rosquinha." > voce git add . -git commit -m "You eat the baguette" +git commit -m "Você come a baguete." -git checkout -b baguette main -echo "You do not have a baguette. +git checkout -b baguete main +echo "Você não tem uma baguete. -You have coffee. +Você tem café. -You do not have a donut." > you +Você não tem uma rosquinha." > voce git add . -git commit -m "You buy some coffee" +git commit -m "Vocẽ compra um café." -echo "You do not have a baguette. +echo "Você não tem uma baguete. -You drank coffee. +Você tomou café. -You do not have a donut." > you +Você não tem uma rosquinha." > voce git add . -git commit -m "You drink the coffee" +git commit -m "Você toma café." -git checkout -b donut main -echo "You do not have a baguette. +git checkout -b rosquinha main +echo "Você não tem uma baguete. -You do not have coffee. +Você não tem café. -You have a donut." > you +Você tem uma rosquinha." > voce git add . -git commit -m "You buy a donut" +git commit -m "Você compra uma rosquinha." git checkout --detach main [win] -# Did you eat a baguette on the baguette branch? -git show baguette:you | grep "You ate.*baguette" +# Você comeu uma baguete na branch 'baguete'? +git show baguete:voce | grep "Você comeu.*baguete" -# Did you drink a coffee on the coffee branch? -git show coffee:you | grep "You drank.*coffee" +# Você tomou café na branch 'cafe'? +git show cafe:voce | grep "Você tomou.*café" -# Did you eat a donut on the donut branch? -git show donut:you | grep "You ate.*donut" +# Você comeu uma rosquinha na branch 'rosquinha'? +git show rosquinha:voce | grep "Você comeu.*rosquinha" [actions] -test "$(git rev-parse HEAD^)" = "$(git rev-parse donut)" && hint "Remember to checkout the blue branch tag when you want it to grow with the timeline." +test "$(git rev-parse HEAD^)" = "$(git rev-parse rosquinha)" && hint "Remember to checkout the blue branch tag when you want it to grow with the timeline." + +[congrats] + +Muito bem! Você conseguiu! \ No newline at end of file