Skip to content

Commit 73f05de

Browse files
committed
translate(levels): branches/reorder - Moving branches around
1 parent 29da3d9 commit 73f05de

File tree

1 file changed

+46
-42
lines changed

1 file changed

+46
-42
lines changed

levels/branches/reorder

Lines changed: 46 additions & 42 deletions
Original file line numberDiff line numberDiff line change
@@ -1,89 +1,93 @@
1-
title = Moving branches around
1+
title = Movendo ramificações entre si
22
cards = checkout commit-auto merge reset-hard
33

44
[description]
55

6-
One of your colleagues messed up here, and put the branches in the wrong timelines!
6+
Um de seus colegas errou aqui e colocou as ramificações nas linhas do tempo erradas!
77

8-
You could delete and re-create these branches - but you can also directly move them to different commits, by using
8+
Você pode excluir e recriar essas ramificações - mas também pode movê-las diretamente para diferentes commits, usando:
99

10-
git checkout
10+
git checkout <nome da branch>
1111

12-
on the branch names, and then using
12+
E logo depois usando:
1313

14-
git reset --hard
14+
git reset --hard <commit id>
1515

16-
on the commit where you want the branch to be.
16+
No commit onde você quer que a branch fique.
1717

18-
The donut branch is in the right place, but the timeline is still incomplete - make you actually *eat* the donut in that branch!
18+
A branch 'rosquinha' está no lugar certo, mas a linha do tempo ainda está incompleta - faça você *comer* a rosquinha naquela branch!
1919

2020
[setup]
2121

22-
echo "You do not have a baguette.
22+
echo "Você não tem uma baguete.
2323

24-
You do not have coffee.
24+
Você não tem café.
2525

26-
You do not have a donut." > you
26+
Você não tem uma rosquinha." > voce
2727

2828
git add .
29-
git commit -m "The Beginning"
29+
git commit -m "O começo de tudo."
3030

31-
git checkout -b coffee
32-
echo "You have a baguette.
31+
git checkout -b cafe
32+
echo "Você tem uma baguete.
3333

34-
You do not have coffee.
34+
Você não tem café.
3535

36-
You do not have a donut." > you
36+
Você não tem uma rosquinha." > voce
3737
git add .
38-
git commit -m "You buy a baguette"
38+
git commit -m "Você compra uma baguete."
3939

40-
echo "You ate a baguette.
40+
echo "Você comeu uma baguete.
4141

42-
You do not have coffee.
42+
Você não tem café.
4343

44-
You do not have a donut." > you
44+
Você não tem uma rosquinha." > voce
4545
git add .
46-
git commit -m "You eat the baguette"
46+
git commit -m "Você come a baguete."
4747

48-
git checkout -b baguette main
49-
echo "You do not have a baguette.
48+
git checkout -b baguete main
49+
echo "Você não tem uma baguete.
5050

51-
You have coffee.
51+
Você tem café.
5252

53-
You do not have a donut." > you
53+
Você não tem uma rosquinha." > voce
5454
git add .
55-
git commit -m "You buy some coffee"
55+
git commit -m "Vocẽ compra um café."
5656

57-
echo "You do not have a baguette.
57+
echo "Você não tem uma baguete.
5858

59-
You drank coffee.
59+
Você tomou café.
6060

61-
You do not have a donut." > you
61+
Você não tem uma rosquinha." > voce
6262
git add .
63-
git commit -m "You drink the coffee"
63+
git commit -m "Você toma café."
6464

65-
git checkout -b donut main
66-
echo "You do not have a baguette.
65+
git checkout -b rosquinha main
66+
echo "Você não tem uma baguete.
6767

68-
You do not have coffee.
68+
Você não tem café.
6969

70-
You have a donut." > you
70+
Você tem uma rosquinha." > voce
7171
git add .
72-
git commit -m "You buy a donut"
72+
git commit -m "Você compra uma rosquinha."
7373

7474
git checkout --detach main
7575

7676
[win]
7777

78-
# Did you eat a baguette on the baguette branch?
79-
git show baguette:you | grep "You ate.*baguette"
78+
# Você comeu uma baguete na branch 'baguete'?
79+
git show baguete:voce | grep "Você comeu.*baguete"
8080

81-
# Did you drink a coffee on the coffee branch?
82-
git show coffee:you | grep "You drank.*coffee"
81+
# Você tomou café na branch 'cafe'?
82+
git show cafe:voce | grep "Você tomou.*café"
8383

84-
# Did you eat a donut on the donut branch?
85-
git show donut:you | grep "You ate.*donut"
84+
# Você comeu uma rosquinha na branch 'rosquinha'?
85+
git show rosquinha:voce | grep "Você comeu.*rosquinha"
8686

8787
[actions]
8888

89-
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."
89+
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."
90+
91+
[congrats]
92+
93+
Muito bem! Você conseguiu!

0 commit comments

Comments
 (0)