mirror of
https://github.com/pcottle/learnGitBranching.git
synced 2025-07-02 18:54:27 +02:00
Swap other references to master except level-y stuff
This commit is contained in:
parent
673de4da1c
commit
3d959ddc50
30 changed files with 1247 additions and 1247 deletions
|
@ -62,15 +62,15 @@ exports.level = {
|
|||
"type": "GitDemonstrationView",
|
||||
"options": {
|
||||
"beforeMarkdowns": [
|
||||
"Here we have a merge commit. If we checkout `master^` without the modifier, we will follow the first parent after the merge commit. ",
|
||||
"Here we have a merge commit. If we checkout `main^` without the modifier, we will follow the first parent after the merge commit. ",
|
||||
"",
|
||||
"(*In our visuals, the first parent is positioned directly above the merge commit.*)"
|
||||
],
|
||||
"afterMarkdowns": [
|
||||
"Easy -- this is what we are all used to."
|
||||
],
|
||||
"command": "git checkout master^",
|
||||
"beforeCommand": "git checkout HEAD^; git commit; git checkout master; git merge C2"
|
||||
"command": "git checkout main^",
|
||||
"beforeCommand": "git checkout HEAD^; git commit; git checkout main; git merge C2"
|
||||
}
|
||||
},
|
||||
{
|
||||
|
@ -82,8 +82,8 @@ exports.level = {
|
|||
"afterMarkdowns": [
|
||||
"See? We followed the other parent upwards."
|
||||
],
|
||||
"command": "git checkout master^2",
|
||||
"beforeCommand": "git checkout HEAD^; git commit; git checkout master; git merge C2"
|
||||
"command": "git checkout main^2",
|
||||
"beforeCommand": "git checkout HEAD^; git commit; git checkout main; git merge C2"
|
||||
}
|
||||
},
|
||||
{
|
||||
|
@ -96,7 +96,7 @@ exports.level = {
|
|||
"Lightning fast!"
|
||||
],
|
||||
"command": "git checkout HEAD~; git checkout HEAD^2; git checkout HEAD~2",
|
||||
"beforeCommand": "git commit; git checkout C0; git commit; git commit; git commit; git checkout master; git merge C5; git commit"
|
||||
"beforeCommand": "git commit; git checkout C0; git commit; git commit; git commit; git checkout main; git merge C5; git commit"
|
||||
}
|
||||
},
|
||||
{
|
||||
|
@ -109,7 +109,7 @@ exports.level = {
|
|||
"The same movement as before, but all in one command."
|
||||
],
|
||||
"command": "git checkout HEAD~^2~2",
|
||||
"beforeCommand": "git commit; git checkout C0; git commit; git commit; git commit; git checkout master; git merge C5; git commit"
|
||||
"beforeCommand": "git commit; git checkout C0; git commit; git commit; git commit; git checkout main; git merge C5; git commit"
|
||||
}
|
||||
},
|
||||
{
|
||||
|
@ -149,15 +149,15 @@ exports.level = {
|
|||
"type": "GitDemonstrationView",
|
||||
"options": {
|
||||
"beforeMarkdowns": [
|
||||
"Hier sehen wir einen Merge-Commit. Wenn wir einen Checkout von `master^` ohne Zahl machen, wird Git auf den ersten Vorgänger des Commits zurückgehen. ",
|
||||
"Hier sehen wir einen Merge-Commit. Wenn wir einen Checkout von `main^` ohne Zahl machen, wird Git auf den ersten Vorgänger des Commits zurückgehen. ",
|
||||
"",
|
||||
"*(In unserer Darstellung befindet sich der erste Vorgänger direkt über dem Merge-Commit.)*"
|
||||
],
|
||||
"afterMarkdowns": [
|
||||
"Simpel -- so kennen wir das."
|
||||
],
|
||||
"command": "git checkout master^",
|
||||
"beforeCommand": "git checkout HEAD^; git commit; git checkout master; git merge C2"
|
||||
"command": "git checkout main^",
|
||||
"beforeCommand": "git checkout HEAD^; git commit; git checkout main; git merge C2"
|
||||
}
|
||||
},
|
||||
{
|
||||
|
@ -169,8 +169,8 @@ exports.level = {
|
|||
"afterMarkdowns": [
|
||||
"Gesehen? Wir gehen zu dem anderen Vorgänger zurück."
|
||||
],
|
||||
"command": "git checkout master^2",
|
||||
"beforeCommand": "git checkout HEAD^; git commit; git checkout master; git merge C2"
|
||||
"command": "git checkout main^2",
|
||||
"beforeCommand": "git checkout HEAD^; git commit; git checkout main; git merge C2"
|
||||
}
|
||||
},
|
||||
{
|
||||
|
@ -183,7 +183,7 @@ exports.level = {
|
|||
"Bämm!"
|
||||
],
|
||||
"command": "git checkout HEAD~; git checkout HEAD^2; git checkout HEAD~2",
|
||||
"beforeCommand": "git commit; git checkout C0; git commit; git commit; git commit; git checkout master; git merge C5; git commit"
|
||||
"beforeCommand": "git commit; git checkout C0; git commit; git commit; git commit; git checkout main; git merge C5; git commit"
|
||||
}
|
||||
},
|
||||
{
|
||||
|
@ -196,7 +196,7 @@ exports.level = {
|
|||
"Gleicher Ablauf wie zuvor, nur alles in einem Befehl."
|
||||
],
|
||||
"command": "git checkout HEAD~^2~2",
|
||||
"beforeCommand": "git commit; git checkout C0; git commit; git commit; git commit; git checkout master; git merge C5; git commit"
|
||||
"beforeCommand": "git commit; git checkout C0; git commit; git commit; git commit; git checkout main; git merge C5; git commit"
|
||||
}
|
||||
},
|
||||
{
|
||||
|
@ -236,15 +236,15 @@ exports.level = {
|
|||
"type": "GitDemonstrationView",
|
||||
"options": {
|
||||
"beforeMarkdowns": [
|
||||
"Nous avons un commit/merge. Si nous faisons checkout `master^` sans le symbole, on obtient le premier parent suivant ce commit. ",
|
||||
"Nous avons un commit/merge. Si nous faisons checkout `main^` sans le symbole, on obtient le premier parent suivant ce commit. ",
|
||||
"",
|
||||
"(*Dans notre vue, le premier parent se situe juste au dessus du merge.*)"
|
||||
],
|
||||
"afterMarkdowns": [
|
||||
"Facile -- C\'est ce que nous faisons tout le temps."
|
||||
],
|
||||
"command": "git checkout master^",
|
||||
"beforeCommand": "git checkout HEAD^; git commit; git checkout master; git merge C2"
|
||||
"command": "git checkout main^",
|
||||
"beforeCommand": "git checkout HEAD^; git commit; git checkout main; git merge C2"
|
||||
}
|
||||
},
|
||||
{
|
||||
|
@ -256,8 +256,8 @@ exports.level = {
|
|||
"afterMarkdowns": [
|
||||
"Vous voyez ? Nous suivons le second parent."
|
||||
],
|
||||
"command": "git checkout master^2",
|
||||
"beforeCommand": "git checkout HEAD^; git commit; git checkout master; git merge C2"
|
||||
"command": "git checkout main^2",
|
||||
"beforeCommand": "git checkout HEAD^; git commit; git checkout main; git merge C2"
|
||||
}
|
||||
},
|
||||
{
|
||||
|
@ -270,7 +270,7 @@ exports.level = {
|
|||
"Boum, vitesse du tonnerre !"
|
||||
],
|
||||
"command": "git checkout HEAD~; git checkout HEAD^2; git checkout HEAD~2",
|
||||
"beforeCommand": "git commit; git checkout C0; git commit; git commit; git commit; git checkout master; git merge C5; git commit"
|
||||
"beforeCommand": "git commit; git checkout C0; git commit; git commit; git commit; git checkout main; git merge C5; git commit"
|
||||
}
|
||||
},
|
||||
{
|
||||
|
@ -283,7 +283,7 @@ exports.level = {
|
|||
"Le même résultat, mais en une seule commande."
|
||||
],
|
||||
"command": "git checkout HEAD~^2~2",
|
||||
"beforeCommand": "git commit; git checkout C0; git commit; git commit; git commit; git checkout master; git merge C5; git commit"
|
||||
"beforeCommand": "git commit; git checkout C0; git commit; git commit; git commit; git checkout main; git merge C5; git commit"
|
||||
}
|
||||
},
|
||||
{
|
||||
|
@ -323,15 +323,15 @@ exports.level = {
|
|||
"type": "GitDemonstrationView",
|
||||
"options": {
|
||||
"beforeMarkdowns": [
|
||||
"这里有一个合并提交记录。如果不加数字修改符直接检出 `master^`,会回到第一个父提交记录。",
|
||||
"这里有一个合并提交记录。如果不加数字修改符直接检出 `main^`,会回到第一个父提交记录。",
|
||||
"",
|
||||
"(*在我们的图示中,第一个父提交记录是指合并提交记录正上方的那个提交记录。*)"
|
||||
],
|
||||
"afterMarkdowns": [
|
||||
"这正是我们都已经习惯的方法。"
|
||||
],
|
||||
"command": "git checkout master^",
|
||||
"beforeCommand": "git checkout HEAD^; git commit; git checkout master; git merge C2"
|
||||
"command": "git checkout main^",
|
||||
"beforeCommand": "git checkout HEAD^; git commit; git checkout main; git merge C2"
|
||||
}
|
||||
},
|
||||
{
|
||||
|
@ -343,8 +343,8 @@ exports.level = {
|
|||
"afterMarkdowns": [
|
||||
"看见了吧?我们回到了另外一个父提交上。"
|
||||
],
|
||||
"command": "git checkout master^2",
|
||||
"beforeCommand": "git checkout HEAD^; git commit; git checkout master; git merge C2"
|
||||
"command": "git checkout main^2",
|
||||
"beforeCommand": "git checkout HEAD^; git commit; git checkout main; git merge C2"
|
||||
}
|
||||
},
|
||||
{
|
||||
|
@ -357,7 +357,7 @@ exports.level = {
|
|||
"快若闪电!"
|
||||
],
|
||||
"command": "git checkout HEAD~; git checkout HEAD^2; git checkout HEAD~2",
|
||||
"beforeCommand": "git commit; git checkout C0; git commit; git commit; git commit; git checkout master; git merge C5; git commit"
|
||||
"beforeCommand": "git commit; git checkout C0; git commit; git commit; git commit; git checkout main; git merge C5; git commit"
|
||||
}
|
||||
},
|
||||
{
|
||||
|
@ -370,7 +370,7 @@ exports.level = {
|
|||
"和前面的结果一样,但只用了一条命令。"
|
||||
],
|
||||
"command": "git checkout HEAD~^2~2",
|
||||
"beforeCommand": "git commit; git checkout C0; git commit; git commit; git commit; git checkout master; git merge C5; git commit"
|
||||
"beforeCommand": "git commit; git checkout C0; git commit; git commit; git commit; git checkout main; git merge C5; git commit"
|
||||
}
|
||||
},
|
||||
{
|
||||
|
@ -410,15 +410,15 @@ exports.level = {
|
|||
"type": "GitDemonstrationView",
|
||||
"options": {
|
||||
"beforeMarkdowns": [
|
||||
"Acá tenemos un commit de merge. Si hacemos checkout de `master^`, sin modificadores, vamos a seguir al primer padre después del commit de merge. ",
|
||||
"Acá tenemos un commit de merge. Si hacemos checkout de `main^`, sin modificadores, vamos a seguir al primer padre después del commit de merge. ",
|
||||
"",
|
||||
"(*En nuestras visualizaciones, el primer padre se ubica directamente arriba del commit de merge.*)"
|
||||
],
|
||||
"afterMarkdowns": [
|
||||
"Fácil -- esto es a lo que estamos acostumbrados."
|
||||
],
|
||||
"command": "git checkout master^",
|
||||
"beforeCommand": "git checkout HEAD^; git commit; git checkout master; git merge C2"
|
||||
"command": "git checkout main^",
|
||||
"beforeCommand": "git checkout HEAD^; git commit; git checkout main; git merge C2"
|
||||
}
|
||||
},
|
||||
{
|
||||
|
@ -430,8 +430,8 @@ exports.level = {
|
|||
"afterMarkdowns": [
|
||||
"¿Ves? Seguimos al otro padre hacia arriba."
|
||||
],
|
||||
"command": "git checkout master^2",
|
||||
"beforeCommand": "git checkout HEAD^; git commit; git checkout master; git merge C2"
|
||||
"command": "git checkout main^2",
|
||||
"beforeCommand": "git checkout HEAD^; git commit; git checkout main; git merge C2"
|
||||
}
|
||||
},
|
||||
{
|
||||
|
@ -444,7 +444,7 @@ exports.level = {
|
|||
"¡Rapidísimo!"
|
||||
],
|
||||
"command": "git checkout HEAD~; git checkout HEAD^2; git checkout HEAD~2",
|
||||
"beforeCommand": "git commit; git checkout C0; git commit; git commit; git commit; git checkout master; git merge C5; git commit"
|
||||
"beforeCommand": "git commit; git checkout C0; git commit; git commit; git commit; git checkout main; git merge C5; git commit"
|
||||
}
|
||||
},
|
||||
{
|
||||
|
@ -457,7 +457,7 @@ exports.level = {
|
|||
"El mismo movimiento que antes, pero todo en uno."
|
||||
],
|
||||
"command": "git checkout HEAD~^2~2",
|
||||
"beforeCommand": "git commit; git checkout C0; git commit; git commit; git commit; git checkout master; git merge C5; git commit"
|
||||
"beforeCommand": "git commit; git checkout C0; git commit; git commit; git commit; git checkout main; git merge C5; git commit"
|
||||
}
|
||||
},
|
||||
{
|
||||
|
@ -497,15 +497,15 @@ exports.level = {
|
|||
"type": "GitDemonstrationView",
|
||||
"options": {
|
||||
"beforeMarkdowns": [
|
||||
"Acá tenemos un commit de merge. Si hacemos checkout de `master^`, sin modificadores, vamos a seguir al primer padre después del commit de merge. ",
|
||||
"Acá tenemos un commit de merge. Si hacemos checkout de `main^`, sin modificadores, vamos a seguir al primer padre después del commit de merge. ",
|
||||
"",
|
||||
"(*En nuestras visualizaciones, el primer padre se ubica directamente arriba del commit de merge.*)"
|
||||
],
|
||||
"afterMarkdowns": [
|
||||
"Fácil -- esto es a lo que estamos acostumbrados."
|
||||
],
|
||||
"command": "git checkout master^",
|
||||
"beforeCommand": "git checkout HEAD^; git commit; git checkout master; git merge C2"
|
||||
"command": "git checkout main^",
|
||||
"beforeCommand": "git checkout HEAD^; git commit; git checkout main; git merge C2"
|
||||
}
|
||||
},
|
||||
{
|
||||
|
@ -517,8 +517,8 @@ exports.level = {
|
|||
"afterMarkdowns": [
|
||||
"¿Ves? Seguimos al otro padre hacia arriba."
|
||||
],
|
||||
"command": "git checkout master^2",
|
||||
"beforeCommand": "git checkout HEAD^; git commit; git checkout master; git merge C2"
|
||||
"command": "git checkout main^2",
|
||||
"beforeCommand": "git checkout HEAD^; git commit; git checkout main; git merge C2"
|
||||
}
|
||||
},
|
||||
{
|
||||
|
@ -531,7 +531,7 @@ exports.level = {
|
|||
"¡Rapidísimo!"
|
||||
],
|
||||
"command": "git checkout HEAD~; git checkout HEAD^2; git checkout HEAD~2",
|
||||
"beforeCommand": "git commit; git checkout C0; git commit; git commit; git commit; git checkout master; git merge C5; git commit"
|
||||
"beforeCommand": "git commit; git checkout C0; git commit; git commit; git commit; git checkout main; git merge C5; git commit"
|
||||
}
|
||||
},
|
||||
{
|
||||
|
@ -544,7 +544,7 @@ exports.level = {
|
|||
"El mismo movimiento que antes, pero todo en uno."
|
||||
],
|
||||
"command": "git checkout HEAD~^2~2",
|
||||
"beforeCommand": "git commit; git checkout C0; git commit; git commit; git commit; git checkout master; git merge C5; git commit"
|
||||
"beforeCommand": "git commit; git checkout C0; git commit; git commit; git commit; git checkout main; git merge C5; git commit"
|
||||
}
|
||||
},
|
||||
{
|
||||
|
@ -584,15 +584,15 @@ exports.level = {
|
|||
"type": "GitDemonstrationView",
|
||||
"options": {
|
||||
"beforeMarkdowns": [
|
||||
"Aquí tenemos un commit de merge. Si hacemos checkout de `master^`, sin modificadores, vamos a seguir al primer padre después del commit de merge. ",
|
||||
"Aquí tenemos un commit de merge. Si hacemos checkout de `main^`, sin modificadores, vamos a seguir al primer padre después del commit de merge. ",
|
||||
"",
|
||||
"(*En nuestras visualizaciones, el primer padre se ubica directamente arriba del commit de merge.*)"
|
||||
],
|
||||
"afterMarkdowns": [
|
||||
"Fácil -- esto es a lo que estamos acostumbrados."
|
||||
],
|
||||
"command": "git checkout master^",
|
||||
"beforeCommand": "git checkout HEAD^; git commit; git checkout master; git merge C2"
|
||||
"command": "git checkout main^",
|
||||
"beforeCommand": "git checkout HEAD^; git commit; git checkout main; git merge C2"
|
||||
}
|
||||
},
|
||||
{
|
||||
|
@ -604,8 +604,8 @@ exports.level = {
|
|||
"afterMarkdowns": [
|
||||
"¿Ves? Seguimos al otro padre hacia arriba."
|
||||
],
|
||||
"command": "git checkout master^2",
|
||||
"beforeCommand": "git checkout HEAD^; git commit; git checkout master; git merge C2"
|
||||
"command": "git checkout main^2",
|
||||
"beforeCommand": "git checkout HEAD^; git commit; git checkout main; git merge C2"
|
||||
}
|
||||
},
|
||||
{
|
||||
|
@ -618,7 +618,7 @@ exports.level = {
|
|||
"¡Rapidísimo!"
|
||||
],
|
||||
"command": "git checkout HEAD~; git checkout HEAD^2; git checkout HEAD~2",
|
||||
"beforeCommand": "git commit; git checkout C0; git commit; git commit; git commit; git checkout master; git merge C5; git commit"
|
||||
"beforeCommand": "git commit; git checkout C0; git commit; git commit; git commit; git checkout main; git merge C5; git commit"
|
||||
}
|
||||
},
|
||||
{
|
||||
|
@ -631,7 +631,7 @@ exports.level = {
|
|||
"El mismo movimiento que antes, pero todo en uno."
|
||||
],
|
||||
"command": "git checkout HEAD~^2~2",
|
||||
"beforeCommand": "git commit; git checkout C0; git commit; git commit; git commit; git checkout master; git merge C5; git commit"
|
||||
"beforeCommand": "git commit; git checkout C0; git commit; git commit; git commit; git checkout main; git merge C5; git commit"
|
||||
}
|
||||
},
|
||||
{
|
||||
|
@ -671,15 +671,15 @@ exports.level = {
|
|||
"type": "GitDemonstrationView",
|
||||
"options": {
|
||||
"beforeMarkdowns": [
|
||||
"Aqui temos um commit de merge. Se fizermos checkout em `master^` sem especificar um número, vamos seguir o primeiro pai acima do commit de merge. ",
|
||||
"Aqui temos um commit de merge. Se fizermos checkout em `main^` sem especificar um número, vamos seguir o primeiro pai acima do commit de merge. ",
|
||||
"",
|
||||
"(*Em nossa visualização, o primeiro pai é aquele diretamente acima do commit de merge.*)"
|
||||
],
|
||||
"afterMarkdowns": [
|
||||
"Fácil -- isso é aquilo com o que já estamos acostumados."
|
||||
],
|
||||
"command": "git checkout master^",
|
||||
"beforeCommand": "git checkout HEAD^; git commit; git checkout master; git merge C2"
|
||||
"command": "git checkout main^",
|
||||
"beforeCommand": "git checkout HEAD^; git commit; git checkout main; git merge C2"
|
||||
}
|
||||
},
|
||||
{
|
||||
|
@ -691,8 +691,8 @@ exports.level = {
|
|||
"afterMarkdowns": [
|
||||
"Viu? Subimos para o outro pai."
|
||||
],
|
||||
"command": "git checkout master^2",
|
||||
"beforeCommand": "git checkout HEAD^; git commit; git checkout master; git merge C2"
|
||||
"command": "git checkout main^2",
|
||||
"beforeCommand": "git checkout HEAD^; git commit; git checkout main; git merge C2"
|
||||
}
|
||||
},
|
||||
{
|
||||
|
@ -705,7 +705,7 @@ exports.level = {
|
|||
"Rápido como a luz!"
|
||||
],
|
||||
"command": "git checkout HEAD~; git checkout HEAD^2; git checkout HEAD~2",
|
||||
"beforeCommand": "git commit; git checkout C0; git commit; git commit; git commit; git checkout master; git merge C5; git commit"
|
||||
"beforeCommand": "git commit; git checkout C0; git commit; git commit; git commit; git checkout main; git merge C5; git commit"
|
||||
}
|
||||
},
|
||||
{
|
||||
|
@ -718,7 +718,7 @@ exports.level = {
|
|||
"O mesmo movimento que o anterior, mas tudo em um único comando."
|
||||
],
|
||||
"command": "git checkout HEAD~^2~2",
|
||||
"beforeCommand": "git commit; git checkout C0; git commit; git commit; git commit; git checkout master; git merge C5; git commit"
|
||||
"beforeCommand": "git commit; git checkout C0; git commit; git commit; git commit; git checkout main; git merge C5; git commit"
|
||||
}
|
||||
},
|
||||
{
|
||||
|
@ -759,15 +759,15 @@ exports.level = {
|
|||
"type": "GitDemonstrationView",
|
||||
"options": {
|
||||
"beforeMarkdowns": [
|
||||
"Aquí temos un commit do merge. Se fixéramos checkout en `master^` sen especificar un número, imos seguir ó primeiro pai enriba do commit do merge. ",
|
||||
"Aquí temos un commit do merge. Se fixéramos checkout en `main^` sen especificar un número, imos seguir ó primeiro pai enriba do commit do merge. ",
|
||||
"",
|
||||
"(*Na nosa vista, o primeiro pai é aquel directamente enriba do commit do merge.*)"
|
||||
],
|
||||
"afterMarkdowns": [
|
||||
"Sinxelo, eso é aquelo co que xa estamos acostumados."
|
||||
],
|
||||
"command": "git checkout master^",
|
||||
"beforeCommand": "git checkout HEAD^; git commit; git checkout master; git merge C2"
|
||||
"command": "git checkout main^",
|
||||
"beforeCommand": "git checkout HEAD^; git commit; git checkout main; git merge C2"
|
||||
}
|
||||
},
|
||||
{
|
||||
|
@ -779,8 +779,8 @@ exports.level = {
|
|||
"afterMarkdowns": [
|
||||
"¿Viches? Subimos para o outro pai."
|
||||
],
|
||||
"command": "git checkout master^2",
|
||||
"beforeCommand": "git checkout HEAD^; git commit; git checkout master; git merge C2"
|
||||
"command": "git checkout main^2",
|
||||
"beforeCommand": "git checkout HEAD^; git commit; git checkout main; git merge C2"
|
||||
}
|
||||
},
|
||||
{
|
||||
|
@ -793,7 +793,7 @@ exports.level = {
|
|||
"Rápido coma a luz!"
|
||||
],
|
||||
"command": "git checkout HEAD~; git checkout HEAD^2; git checkout HEAD~2",
|
||||
"beforeCommand": "git commit; git checkout C0; git commit; git commit; git commit; git checkout master; git merge C5; git commit"
|
||||
"beforeCommand": "git commit; git checkout C0; git commit; git commit; git commit; git checkout main; git merge C5; git commit"
|
||||
}
|
||||
},
|
||||
{
|
||||
|
@ -806,7 +806,7 @@ exports.level = {
|
|||
"O mesmo movemento feito antes, pero feito nun só comando."
|
||||
],
|
||||
"command": "git checkout HEAD~^2~2",
|
||||
"beforeCommand": "git commit; git checkout C0; git commit; git commit; git commit; git checkout master; git merge C5; git commit"
|
||||
"beforeCommand": "git commit; git checkout C0; git commit; git commit; git commit; git checkout main; git merge C5; git commit"
|
||||
}
|
||||
},
|
||||
{
|
||||
|
@ -846,15 +846,15 @@ exports.level = {
|
|||
"type": "GitDemonstrationView",
|
||||
"options": {
|
||||
"beforeMarkdowns": [
|
||||
"這裡有一個 merge commit。如果後面不加數字的話會直接切換到`master^`,也就是說會回到第一個 parent commit。",
|
||||
"這裡有一個 merge commit。如果後面不加數字的話會直接切換到`main^`,也就是說會回到第一個 parent commit。",
|
||||
"",
|
||||
"(*在我們的圖示中,第一個 parent commit 是指 merge commit 正上方的那一個 parent commit。*)"
|
||||
],
|
||||
"afterMarkdowns": [
|
||||
"簡單吧!這就是預設的情況。"
|
||||
],
|
||||
"command": "git checkout master^",
|
||||
"beforeCommand": "git checkout HEAD^; git commit; git checkout master; git merge C2"
|
||||
"command": "git checkout main^",
|
||||
"beforeCommand": "git checkout HEAD^; git commit; git checkout main; git merge C2"
|
||||
}
|
||||
},
|
||||
{
|
||||
|
@ -866,8 +866,8 @@ exports.level = {
|
|||
"afterMarkdowns": [
|
||||
"看到了嗎?我們回到了第二個 parent commit。"
|
||||
],
|
||||
"command": "git checkout master^2",
|
||||
"beforeCommand": "git checkout HEAD^; git commit; git checkout master; git merge C2"
|
||||
"command": "git checkout main^2",
|
||||
"beforeCommand": "git checkout HEAD^; git commit; git checkout main; git merge C2"
|
||||
}
|
||||
},
|
||||
{
|
||||
|
@ -880,7 +880,7 @@ exports.level = {
|
|||
"簡直就像是電光石火!"
|
||||
],
|
||||
"command": "git checkout HEAD~; git checkout HEAD^2; git checkout HEAD~2",
|
||||
"beforeCommand": "git commit; git checkout C0; git commit; git commit; git commit; git checkout master; git merge C5; git commit"
|
||||
"beforeCommand": "git commit; git checkout C0; git commit; git commit; git commit; git checkout main; git merge C5; git commit"
|
||||
}
|
||||
},
|
||||
{
|
||||
|
@ -893,7 +893,7 @@ exports.level = {
|
|||
"和前面的結果一樣,但只用了一條指令。"
|
||||
],
|
||||
"command": "git checkout HEAD~^2~2",
|
||||
"beforeCommand": "git commit; git checkout C0; git commit; git commit; git commit; git checkout master; git merge C5; git commit"
|
||||
"beforeCommand": "git commit; git checkout C0; git commit; git commit; git commit; git checkout main; git merge C5; git commit"
|
||||
}
|
||||
},
|
||||
{
|
||||
|
@ -933,15 +933,15 @@ exports.level = {
|
|||
"type": "GitDemonstrationView",
|
||||
"options": {
|
||||
"beforeMarkdowns": [
|
||||
"Вот мерджевый коммит. Если мы перейдём на `master^` без номера, то попадём на первого родителя.",
|
||||
"Вот мерджевый коммит. Если мы перейдём на `main^` без номера, то попадём на первого родителя.",
|
||||
"",
|
||||
"(*На нашей визуализации первый родитель находится прямо над коммитом*)"
|
||||
],
|
||||
"afterMarkdowns": [
|
||||
"Просто - прямо как мы любим."
|
||||
],
|
||||
"command": "git checkout master^",
|
||||
"beforeCommand": "git checkout HEAD^; git commit; git checkout master; git merge C2"
|
||||
"command": "git checkout main^",
|
||||
"beforeCommand": "git checkout HEAD^; git commit; git checkout main; git merge C2"
|
||||
}
|
||||
},
|
||||
{
|
||||
|
@ -953,8 +953,8 @@ exports.level = {
|
|||
"afterMarkdowns": [
|
||||
"Вот. Мы на втором родительском коммите."
|
||||
],
|
||||
"command": "git checkout master^2",
|
||||
"beforeCommand": "git checkout HEAD^; git commit; git checkout master; git merge C2"
|
||||
"command": "git checkout main^2",
|
||||
"beforeCommand": "git checkout HEAD^; git commit; git checkout main; git merge C2"
|
||||
}
|
||||
},
|
||||
{
|
||||
|
@ -967,7 +967,7 @@ exports.level = {
|
|||
"Быстро как Флэш!"
|
||||
],
|
||||
"command": "git checkout HEAD~; git checkout HEAD^2; git checkout HEAD~2",
|
||||
"beforeCommand": "git commit; git checkout C0; git commit; git commit; git commit; git checkout master; git merge C5; git commit"
|
||||
"beforeCommand": "git commit; git checkout C0; git commit; git commit; git commit; git checkout main; git merge C5; git commit"
|
||||
}
|
||||
},
|
||||
{
|
||||
|
@ -980,7 +980,7 @@ exports.level = {
|
|||
"Сделаем то же самое, что перед этим, только в одну команду."
|
||||
],
|
||||
"command": "git checkout HEAD~^2~2",
|
||||
"beforeCommand": "git commit; git checkout C0; git commit; git commit; git commit; git checkout master; git merge C5; git commit"
|
||||
"beforeCommand": "git commit; git checkout C0; git commit; git commit; git commit; git checkout main; git merge C5; git commit"
|
||||
}
|
||||
},
|
||||
{
|
||||
|
@ -1020,15 +1020,15 @@ exports.level = {
|
|||
"type": "GitDemonstrationView",
|
||||
"options": {
|
||||
"beforeMarkdowns": [
|
||||
"ここに、マージコミットがあります。もし、指定無しに`master^`でチェックアウトした場合、私たちは一番目の親に移動することになります。",
|
||||
"ここに、マージコミットがあります。もし、指定無しに`main^`でチェックアウトした場合、私たちは一番目の親に移動することになります。",
|
||||
"",
|
||||
"(*私たちのツリーでは、一番目の親はマージコミットのちょうど上に位置しています。*)"
|
||||
],
|
||||
"afterMarkdowns": [
|
||||
"簡単ですね -- これがデフォルトの動作になります。"
|
||||
],
|
||||
"command": "git checkout master^",
|
||||
"beforeCommand": "git checkout HEAD^; git commit; git checkout master; git merge C2"
|
||||
"command": "git checkout main^",
|
||||
"beforeCommand": "git checkout HEAD^; git commit; git checkout main; git merge C2"
|
||||
}
|
||||
},
|
||||
{
|
||||
|
@ -1040,8 +1040,8 @@ exports.level = {
|
|||
"afterMarkdowns": [
|
||||
"見ましたか?私たちは他の親に移ることができました。"
|
||||
],
|
||||
"command": "git checkout master^2",
|
||||
"beforeCommand": "git checkout HEAD^; git commit; git checkout master; git merge C2"
|
||||
"command": "git checkout main^2",
|
||||
"beforeCommand": "git checkout HEAD^; git commit; git checkout main; git merge C2"
|
||||
}
|
||||
},
|
||||
{
|
||||
|
@ -1054,7 +1054,7 @@ exports.level = {
|
|||
"超高速ですね!"
|
||||
],
|
||||
"command": "git checkout HEAD~; git checkout HEAD^2; git checkout HEAD~2",
|
||||
"beforeCommand": "git commit; git checkout C0; git commit; git commit; git commit; git checkout master; git merge C5; git commit"
|
||||
"beforeCommand": "git commit; git checkout C0; git commit; git commit; git commit; git checkout main; git merge C5; git commit"
|
||||
}
|
||||
},
|
||||
{
|
||||
|
@ -1067,7 +1067,7 @@ exports.level = {
|
|||
"前と同じ移動ですが、なんと一つのコマンドでできています。"
|
||||
],
|
||||
"command": "git checkout HEAD~^2~2",
|
||||
"beforeCommand": "git commit; git checkout C0; git commit; git commit; git commit; git checkout master; git merge C5; git commit"
|
||||
"beforeCommand": "git commit; git checkout C0; git commit; git commit; git commit; git checkout main; git merge C5; git commit"
|
||||
}
|
||||
},
|
||||
{
|
||||
|
@ -1114,8 +1114,8 @@ exports.level = {
|
|||
"afterMarkdowns": [
|
||||
"간단하죠 -- 우리한테 익숙한 모습입니다."
|
||||
],
|
||||
"command": "git checkout master^",
|
||||
"beforeCommand": "git checkout HEAD^; git commit; git checkout master; git merge C2"
|
||||
"command": "git checkout main^",
|
||||
"beforeCommand": "git checkout HEAD^; git commit; git checkout main; git merge C2"
|
||||
}
|
||||
},
|
||||
{
|
||||
|
@ -1127,8 +1127,8 @@ exports.level = {
|
|||
"afterMarkdowns": [
|
||||
"보이나요? 다른 부모를 선택해 올라갔습니다."
|
||||
],
|
||||
"command": "git checkout master^2",
|
||||
"beforeCommand": "git checkout HEAD^; git commit; git checkout master; git merge C2"
|
||||
"command": "git checkout main^2",
|
||||
"beforeCommand": "git checkout HEAD^; git commit; git checkout main; git merge C2"
|
||||
}
|
||||
},
|
||||
{
|
||||
|
@ -1141,7 +1141,7 @@ exports.level = {
|
|||
"빛처럼 빠르게 말이죠!"
|
||||
],
|
||||
"command": "git checkout HEAD~; git checkout HEAD^2; git checkout HEAD~2",
|
||||
"beforeCommand": "git commit; git checkout C0; git commit; git commit; git commit; git checkout master; git merge C5; git commit"
|
||||
"beforeCommand": "git commit; git checkout C0; git commit; git commit; git commit; git checkout main; git merge C5; git commit"
|
||||
}
|
||||
},
|
||||
{
|
||||
|
@ -1154,7 +1154,7 @@ exports.level = {
|
|||
"앞과 같은 움직임이지만 하나의 명령으로 표현되었습니다."
|
||||
],
|
||||
"command": "git checkout HEAD~^2~2",
|
||||
"beforeCommand": "git commit; git checkout C0; git commit; git commit; git commit; git checkout master; git merge C5; git commit"
|
||||
"beforeCommand": "git commit; git checkout C0; git commit; git commit; git commit; git checkout main; git merge C5; git commit"
|
||||
}
|
||||
},
|
||||
{
|
||||
|
@ -1194,15 +1194,15 @@ exports.level = {
|
|||
"type": "GitDemonstrationView",
|
||||
"options": {
|
||||
"beforeMarkdowns": [
|
||||
"Ось ми маємо мерджевий коміт. Якщо зробимо checkout `master^` без числа, ми потрапимо на першого з предків ",
|
||||
"Ось ми маємо мерджевий коміт. Якщо зробимо checkout `main^` без числа, ми потрапимо на першого з предків ",
|
||||
"",
|
||||
"(*В нашій візуалізації перший предок знаходиться прямо над мерджевим комітом*)"
|
||||
],
|
||||
"afterMarkdowns": [
|
||||
"Легко -- те до чого ми всі звикли."
|
||||
],
|
||||
"command": "git checkout master^",
|
||||
"beforeCommand": "git checkout HEAD^; git commit; git checkout master; git merge C2"
|
||||
"command": "git checkout main^",
|
||||
"beforeCommand": "git checkout HEAD^; git commit; git checkout main; git merge C2"
|
||||
}
|
||||
},
|
||||
{
|
||||
|
@ -1214,8 +1214,8 @@ exports.level = {
|
|||
"afterMarkdowns": [
|
||||
"Бачиш? Ми перейшли до другого батька вверх."
|
||||
],
|
||||
"command": "git checkout master^2",
|
||||
"beforeCommand": "git checkout HEAD^; git commit; git checkout master; git merge C2"
|
||||
"command": "git checkout main^2",
|
||||
"beforeCommand": "git checkout HEAD^; git commit; git checkout main; git merge C2"
|
||||
}
|
||||
},
|
||||
{
|
||||
|
@ -1228,7 +1228,7 @@ exports.level = {
|
|||
"Супер швидко!"
|
||||
],
|
||||
"command": "git checkout HEAD~; git checkout HEAD^2; git checkout HEAD~2",
|
||||
"beforeCommand": "git commit; git checkout C0; git commit; git commit; git commit; git checkout master; git merge C5; git commit"
|
||||
"beforeCommand": "git commit; git checkout C0; git commit; git commit; git commit; git checkout main; git merge C5; git commit"
|
||||
}
|
||||
},
|
||||
{
|
||||
|
@ -1241,7 +1241,7 @@ exports.level = {
|
|||
"Те саме, що й перед цим, але однією командою."
|
||||
],
|
||||
"command": "git checkout HEAD~^2~2",
|
||||
"beforeCommand": "git commit; git checkout C0; git commit; git commit; git commit; git checkout master; git merge C5; git commit"
|
||||
"beforeCommand": "git commit; git checkout C0; git commit; git commit; git commit; git checkout main; git merge C5; git commit"
|
||||
}
|
||||
},
|
||||
{
|
||||
|
@ -1281,15 +1281,15 @@ exports.level = {
|
|||
"type": "GitDemonstrationView",
|
||||
"options": {
|
||||
"beforeMarkdowns": [
|
||||
"Ở đây ta có 1 commit merge. Nếu ta dùng lệnh `master^` mà không bổ nghĩa cho nó, ta sẽ đi ngược lên commit cha đầu tiên của merge commit. ",
|
||||
"Ở đây ta có 1 commit merge. Nếu ta dùng lệnh `main^` mà không bổ nghĩa cho nó, ta sẽ đi ngược lên commit cha đầu tiên của merge commit. ",
|
||||
"",
|
||||
"(*Trong hình minh họa bên trái thì commit cha đầu tiên được xếp hẳng hàng ngay phía trên của commit merge.*)"
|
||||
],
|
||||
"afterMarkdowns": [
|
||||
"Dễ dàng -- đó là cách mà ta thường làm."
|
||||
],
|
||||
"command": "git checkout master^",
|
||||
"beforeCommand": "git checkout HEAD^; git commit; git checkout master; git merge C2"
|
||||
"command": "git checkout main^",
|
||||
"beforeCommand": "git checkout HEAD^; git commit; git checkout main; git merge C2"
|
||||
}
|
||||
},
|
||||
{
|
||||
|
@ -1301,8 +1301,8 @@ exports.level = {
|
|||
"afterMarkdowns": [
|
||||
"Thấy chứ? Ta đã leo lên commit cha khác lúc trước."
|
||||
],
|
||||
"command": "git checkout master^2",
|
||||
"beforeCommand": "git checkout HEAD^; git commit; git checkout master; git merge C2"
|
||||
"command": "git checkout main^2",
|
||||
"beforeCommand": "git checkout HEAD^; git commit; git checkout main; git merge C2"
|
||||
}
|
||||
},
|
||||
{
|
||||
|
@ -1315,7 +1315,7 @@ exports.level = {
|
|||
"Nhanh như chớp!"
|
||||
],
|
||||
"command": "git checkout HEAD~; git checkout HEAD^2; git checkout HEAD~2",
|
||||
"beforeCommand": "git commit; git checkout C0; git commit; git commit; git commit; git checkout master; git merge C5; git commit"
|
||||
"beforeCommand": "git commit; git checkout C0; git commit; git commit; git commit; git checkout main; git merge C5; git commit"
|
||||
}
|
||||
},
|
||||
{
|
||||
|
@ -1328,7 +1328,7 @@ exports.level = {
|
|||
"Cùng con đường như lúc trước, nhưng chỉ cần 1 dòng lệnh."
|
||||
],
|
||||
"command": "git checkout HEAD~^2~2",
|
||||
"beforeCommand": "git commit; git checkout C0; git commit; git commit; git commit; git checkout master; git merge C5; git commit"
|
||||
"beforeCommand": "git commit; git checkout C0; git commit; git commit; git commit; git checkout main; git merge C5; git commit"
|
||||
}
|
||||
},
|
||||
{
|
||||
|
@ -1368,15 +1368,15 @@ exports.level = {
|
|||
"type": "GitDemonstrationView",
|
||||
"options": {
|
||||
"beforeMarkdowns": [
|
||||
"Tukaj imamo merge commit. Če checkoutamo `master^` brez modifikatorjev, bomo sledili prvem staršu po merge commitu. ",
|
||||
"Tukaj imamo merge commit. Če checkoutamo `main^` brez modifikatorjev, bomo sledili prvem staršu po merge commitu. ",
|
||||
"",
|
||||
"(* V naši vizualizaciji, je postavljen prvi starš direktno nad merge commitom.)"
|
||||
],
|
||||
"afterMarkdowns": [
|
||||
"Enostavno -- tega smo vsi navajeni."
|
||||
],
|
||||
"command": "git checkout master^",
|
||||
"beforeCommand": "git checkout HEAD^; git commit; git checkout master; git merge C2"
|
||||
"command": "git checkout main^",
|
||||
"beforeCommand": "git checkout HEAD^; git commit; git checkout main; git merge C2"
|
||||
}
|
||||
},
|
||||
{
|
||||
|
@ -1388,8 +1388,8 @@ exports.level = {
|
|||
"afterMarkdowns": [
|
||||
"Vidiš? Sledili smo drugemu staršu navzgor."
|
||||
],
|
||||
"command": "git checkout master^2",
|
||||
"beforeCommand": "git checkout HEAD^; git commit; git checkout master; git merge C2"
|
||||
"command": "git checkout main^2",
|
||||
"beforeCommand": "git checkout HEAD^; git commit; git checkout main; git merge C2"
|
||||
}
|
||||
},
|
||||
{
|
||||
|
@ -1402,7 +1402,7 @@ exports.level = {
|
|||
"Bliskovito!"
|
||||
],
|
||||
"command": "git checkout HEAD~; git checkout HEAD^2; git checkout HEAD~2",
|
||||
"beforeCommand": "git commit; git checkout C0; git commit; git commit; git commit; git checkout master; git merge C5; git commit"
|
||||
"beforeCommand": "git commit; git checkout C0; git commit; git commit; git commit; git checkout main; git merge C5; git commit"
|
||||
}
|
||||
},
|
||||
{
|
||||
|
@ -1415,7 +1415,7 @@ exports.level = {
|
|||
"Isto gibanje kot prej, ampak vse z enim ukazom."
|
||||
],
|
||||
"command": "git checkout HEAD~^2~2",
|
||||
"beforeCommand": "git commit; git checkout C0; git commit; git commit; git commit; git checkout master; git merge C5; git commit"
|
||||
"beforeCommand": "git commit; git checkout C0; git commit; git commit; git commit; git checkout main; git merge C5; git commit"
|
||||
}
|
||||
},
|
||||
{
|
||||
|
|
|
@ -1037,7 +1037,7 @@ exports.level = {
|
|||
"Теперь попробуем сделать некоторые изменения в этой ветке. Для этого нажми кнопку ниже."
|
||||
],
|
||||
"afterMarkdowns": [
|
||||
"О-оу! Ветка master сдвинулась, тогда как ветка newImage - нет! Всё из-за того, что мы не переключились на новую ветку, а остались в старой, о чём говорит звёздочка около ветки master."
|
||||
"О-оу! Ветка main сдвинулась, тогда как ветка newImage - нет! Всё из-за того, что мы не переключились на новую ветку, а остались в старой, о чём говорит звёздочка около ветки main."
|
||||
],
|
||||
"command": "git commit",
|
||||
"beforeCommand": "git branch newImage"
|
||||
|
|
|
@ -21,23 +21,23 @@ exports.level = {
|
|||
"pl" : "Łączenie/Scalanie w GIT (merge)"
|
||||
},
|
||||
"hint": {
|
||||
"en_US": "Remember to commit in the order specified (bugFix before master)",
|
||||
"de_DE": "Denk dran in der angegebenen Reihenfolge zu committen (erst bugFix, dann master)",
|
||||
"en_US": "Remember to commit in the order specified (bugFix before main)",
|
||||
"de_DE": "Denk dran in der angegebenen Reihenfolge zu committen (erst bugFix, dann main)",
|
||||
"ja" : "指示された順番でコミットすること(masterの前にbugFixで)",
|
||||
"es_AR": "Acordate de commitear en el orden especificado (bugFix antes de master)",
|
||||
"es_MX": "Acuérdate de hacer commit en el orden especificado (bugFix antes de master)",
|
||||
"es_ES": "Acuérdate de hacer commit en el orden especificado (bugFix antes de master)",
|
||||
"pt_BR": "Lembre-se de commitar na ordem especificada (bugFix antes de master)",
|
||||
"gl" : "Lembrate de facer commit na orde específica (bugFix antes de master)",
|
||||
"fr_FR": "Pensez à faire des commits dans l'ordre indiqué (bugFix avant master)",
|
||||
"zh_CN": "要按目标窗口中指定的顺序进行提交(bugFix 先于 master)",
|
||||
"zh_TW": "記住按指定的順序 commit(bugFix 比 master 優先)",
|
||||
"es_AR": "Acordate de commitear en el orden especificado (bugFix antes de main)",
|
||||
"es_MX": "Acuérdate de hacer commit en el orden especificado (bugFix antes de main)",
|
||||
"es_ES": "Acuérdate de hacer commit en el orden especificado (bugFix antes de main)",
|
||||
"pt_BR": "Lembre-se de commitar na ordem especificada (bugFix antes de main)",
|
||||
"gl" : "Lembrate de facer commit na orde específica (bugFix antes de main)",
|
||||
"fr_FR": "Pensez à faire des commits dans l'ordre indiqué (bugFix avant main)",
|
||||
"zh_CN": "要按目标窗口中指定的顺序进行提交(bugFix 先于 main)",
|
||||
"zh_TW": "記住按指定的順序 commit(bugFix 比 main 優先)",
|
||||
"ko": "말씀드린 순서대로 커밋해주세요 (bugFix에 먼저 커밋하고 master에 커밋)",
|
||||
"ru_RU": "Не забудь делать коммиты в правильном порядке (сначала bugFix, потом master)",
|
||||
"uk": "Не забудь робити коміти в правильному порядку (спочатку bugFix, а вже потім master)",
|
||||
"vi": "Nhớ là commit theo đúng thứ tự(bugFix trước master)",
|
||||
"sl_SI": 'Zapomni si, da je potrebno commitati v pravilnem vrstnem redu (bugfix pred master)',
|
||||
"pl" : "Pamiętaj, aby commit-ować w określonej kolejności (bugFix przed master)"
|
||||
"ru_RU": "Не забудь делать коммиты в правильном порядке (сначала bugFix, потом main)",
|
||||
"uk": "Не забудь робити коміти в правильному порядку (спочатку bugFix, а вже потім main)",
|
||||
"vi": "Nhớ là commit theo đúng thứ tự(bugFix trước main)",
|
||||
"sl_SI": 'Zapomni si, da je potrebno commitati v pravilnem vrstnem redu (bugfix pred main)',
|
||||
"pl" : "Pamiętaj, aby commit-ować w określonej kolejności (bugFix przed main)"
|
||||
},
|
||||
"disabledMap": {
|
||||
"git revert": true
|
||||
|
@ -75,7 +75,7 @@ exports.level = {
|
|||
"So here we see that the `main` branch color is blended into all the commits, but the `bugFix` color is not. Let's fix that..."
|
||||
],
|
||||
"command": "git merge bugFix",
|
||||
"beforeCommand": "git checkout -b bugFix; git commit; git checkout master; git commit"
|
||||
"beforeCommand": "git checkout -b bugFix; git commit; git checkout main; git commit"
|
||||
}
|
||||
},
|
||||
{
|
||||
|
@ -89,8 +89,8 @@ exports.level = {
|
|||
"",
|
||||
"Now all the commits are the same color, which means each branch contains all the work in the repository! Woohoo!"
|
||||
],
|
||||
"command": "git checkout bugFix; git merge master",
|
||||
"beforeCommand": "git checkout -b bugFix; git commit; git checkout master; git commit; git merge bugFix"
|
||||
"command": "git checkout bugFix; git merge main",
|
||||
"beforeCommand": "git checkout -b bugFix; git commit; git checkout main; git commit; git merge bugFix"
|
||||
}
|
||||
},
|
||||
{
|
||||
|
@ -144,7 +144,7 @@ exports.level = {
|
|||
"Wir sehen also, dass die Farbe des Branch `main` in alle Commits gemischt wurde, die von `bugFix` aber nicht. Ändern wir das ..."
|
||||
],
|
||||
"command": "git merge bugFix",
|
||||
"beforeCommand": "git checkout -b bugFix; git commit; git checkout master; git commit"
|
||||
"beforeCommand": "git checkout -b bugFix; git commit; git checkout main; git commit"
|
||||
}
|
||||
},
|
||||
{
|
||||
|
@ -158,8 +158,8 @@ exports.level = {
|
|||
"",
|
||||
"Jetzt haben alle Commits dieselbe Farbe, das heißt jeder Branch enthält die Informationen des gesamten Repositorys! Juhu!"
|
||||
],
|
||||
"command": "git checkout bugFix; git merge master",
|
||||
"beforeCommand": "git checkout -b bugFix; git commit; git checkout master; git commit; git merge bugFix"
|
||||
"command": "git checkout bugFix; git merge main",
|
||||
"beforeCommand": "git checkout -b bugFix; git commit; git checkout main; git commit; git merge bugFix"
|
||||
}
|
||||
},
|
||||
{
|
||||
|
@ -213,7 +213,7 @@ exports.level = {
|
|||
"今回のコミットには`main`ブランチの色が使われました。しかし`bugFix`ブランチの色がまだ変わってないようなので、これを変えてみましょう。"
|
||||
],
|
||||
"command": "git merge bugFix",
|
||||
"beforeCommand": "git checkout -b bugFix; git commit; git checkout master; git commit"
|
||||
"beforeCommand": "git checkout -b bugFix; git commit; git checkout main; git commit"
|
||||
}
|
||||
},
|
||||
{
|
||||
|
@ -227,8 +227,8 @@ exports.level = {
|
|||
"",
|
||||
"これで全てのコミットが同じ色になりました。つまり、リポジトリの中の全ての変更をそれぞれのブランチが持ったことになります。やったね!"
|
||||
],
|
||||
"command": "git checkout bugFix; git merge master",
|
||||
"beforeCommand": "git checkout -b bugFix; git commit; git checkout master; git commit; git merge bugFix"
|
||||
"command": "git checkout bugFix; git merge main",
|
||||
"beforeCommand": "git checkout -b bugFix; git commit; git checkout main; git commit; git merge bugFix"
|
||||
}
|
||||
},
|
||||
{
|
||||
|
@ -282,7 +282,7 @@ exports.level = {
|
|||
"Así que acá vemos que el color de la rama `main` participa en la mezcla de todos los commits, pero que el de `bugFix` no. Arreglemos eso..."
|
||||
],
|
||||
"command": "git merge bugFix",
|
||||
"beforeCommand": "git checkout -b bugFix; git commit; git checkout master; git commit"
|
||||
"beforeCommand": "git checkout -b bugFix; git commit; git checkout main; git commit"
|
||||
}
|
||||
},
|
||||
{
|
||||
|
@ -296,8 +296,8 @@ exports.level = {
|
|||
"",
|
||||
"Ahora todos los commits son del mismo color, lo que significa que cada rama contiene todo el trabajo que hay en el repositorio. ¡Wiii!"
|
||||
],
|
||||
"command": "git checkout bugFix; git merge master",
|
||||
"beforeCommand": "git checkout -b bugFix; git commit; git checkout master; git commit; git merge bugFix"
|
||||
"command": "git checkout bugFix; git merge main",
|
||||
"beforeCommand": "git checkout -b bugFix; git commit; git checkout main; git commit; git merge bugFix"
|
||||
}
|
||||
},
|
||||
{
|
||||
|
@ -351,7 +351,7 @@ exports.level = {
|
|||
"Así que acá vemos que el color de la rama `main` participa en la mezcla de todos los commits, pero que el de `bugFix` no. Arreglemos eso..."
|
||||
],
|
||||
"command": "git merge bugFix",
|
||||
"beforeCommand": "git checkout -b bugFix; git commit; git checkout master; git commit"
|
||||
"beforeCommand": "git checkout -b bugFix; git commit; git checkout main; git commit"
|
||||
}
|
||||
},
|
||||
{
|
||||
|
@ -365,8 +365,8 @@ exports.level = {
|
|||
"",
|
||||
"Ahora todos los commits son del mismo color, lo que significa que cada rama contiene todo el trabajo que hay en el repositorio. ¡Súper!"
|
||||
],
|
||||
"command": "git checkout bugFix; git merge master",
|
||||
"beforeCommand": "git checkout -b bugFix; git commit; git checkout master; git commit; git merge bugFix"
|
||||
"command": "git checkout bugFix; git merge main",
|
||||
"beforeCommand": "git checkout -b bugFix; git commit; git checkout main; git commit; git merge bugFix"
|
||||
}
|
||||
},
|
||||
{
|
||||
|
@ -420,7 +420,7 @@ exports.level = {
|
|||
"Así que aquí vemos que el color de la rama `main` participa en la mezcla de todos los commits, pero que el de `bugFix` no. Arreglemos eso..."
|
||||
],
|
||||
"command": "git merge bugFix",
|
||||
"beforeCommand": "git checkout -b bugFix; git commit; git checkout master; git commit"
|
||||
"beforeCommand": "git checkout -b bugFix; git commit; git checkout main; git commit"
|
||||
}
|
||||
},
|
||||
{
|
||||
|
@ -434,8 +434,8 @@ exports.level = {
|
|||
"",
|
||||
"Ahora todos los commits son del mismo color, lo que significa que cada rama contiene todo el trabajo que hay en el repositorio. ¡Genial!"
|
||||
],
|
||||
"command": "git checkout bugFix; git merge master",
|
||||
"beforeCommand": "git checkout -b bugFix; git commit; git checkout master; git commit; git merge bugFix"
|
||||
"command": "git checkout bugFix; git merge main",
|
||||
"beforeCommand": "git checkout -b bugFix; git commit; git checkout main; git commit; git merge bugFix"
|
||||
}
|
||||
},
|
||||
{
|
||||
|
@ -489,7 +489,7 @@ exports.level = {
|
|||
"Aqui vemos que a cor do ramo `main` está misturada em todos os commits, mas a cor do `bugFix` não está. Vamos corrigir isso..."
|
||||
],
|
||||
"command": "git merge bugFix",
|
||||
"beforeCommand": "git checkout -b bugFix; git commit; git checkout master; git commit"
|
||||
"beforeCommand": "git checkout -b bugFix; git commit; git checkout main; git commit"
|
||||
}
|
||||
},
|
||||
{
|
||||
|
@ -503,8 +503,8 @@ exports.level = {
|
|||
"",
|
||||
"Agora todos os commits possuem a mesma cor, o que significa que ambos os ramos contém todo o trabalho realizado no repositório! Eba!"
|
||||
],
|
||||
"command": "git checkout bugFix; git merge master",
|
||||
"beforeCommand": "git checkout -b bugFix; git commit; git checkout master; git commit; git merge bugFix"
|
||||
"command": "git checkout bugFix; git merge main",
|
||||
"beforeCommand": "git checkout -b bugFix; git commit; git checkout main; git commit; git merge bugFix"
|
||||
}
|
||||
},
|
||||
{
|
||||
|
@ -558,7 +558,7 @@ exports.level = {
|
|||
"Aquí vemos que a rama `main` está mesturada en todos os commits, pero a cor da rama `bugFix` non o está. Imos arranxar eso..."
|
||||
],
|
||||
"command": "git merge bugFix",
|
||||
"beforeCommand": "git checkout -b bugFix; git commit; git checkout master; git commit"
|
||||
"beforeCommand": "git checkout -b bugFix; git commit; git checkout main; git commit"
|
||||
}
|
||||
},
|
||||
{
|
||||
|
@ -572,8 +572,8 @@ exports.level = {
|
|||
"",
|
||||
"Agora tódolos commits teñen a mesma cor, o que significa que ambas ramas teñen o mesmo traballo no repositorios! Iepa!"
|
||||
],
|
||||
"command": "git checkout bugFix; git merge master",
|
||||
"beforeCommand": "git checkout -b bugFix; git commit; git checkout master; git commit; git merge bugFix"
|
||||
"command": "git checkout bugFix; git merge main",
|
||||
"beforeCommand": "git checkout -b bugFix; git commit; git checkout main; git commit; git merge bugFix"
|
||||
}
|
||||
},
|
||||
{
|
||||
|
@ -603,7 +603,7 @@ exports.level = {
|
|||
"markdowns": [
|
||||
"## Branches et Merges",
|
||||
"",
|
||||
"Super ! Nous savons désormais comment faire des commits et des branches. Maintenant nous devons apprendre comment combiner ensemble les contenus de deux branches différentes. Ceci nous permettra de créer une nouvelle branche, développer une nouvelle fonctionnalité sur cette dernière, puis intégrer cette fonctionnalité en combinant le contenu de cette branche de développement à la branche d'origine (master par exemple).",
|
||||
"Super ! Nous savons désormais comment faire des commits et des branches. Maintenant nous devons apprendre comment combiner ensemble les contenus de deux branches différentes. Ceci nous permettra de créer une nouvelle branche, développer une nouvelle fonctionnalité sur cette dernière, puis intégrer cette fonctionnalité en combinant le contenu de cette branche de développement à la branche d'origine (main par exemple).",
|
||||
"",
|
||||
"La première méthode que nous allons voir pour combiner le contenu de deux branches est `git merge`. Faire un 'merge' avec Git crée un commit spécial qui a deux parents. Un commit avec deux parents indique en susbtance \"Je veux inclure le contenu de ce parent et le contenu de cet autre parent, *et* l'ensemble de leurs parents.\"",
|
||||
"",
|
||||
|
@ -627,7 +627,7 @@ exports.level = {
|
|||
"Ici nous voyons que la couleur de `main` est intégrée à tous les commits, sauf ceux de `bugFix`. Réparons-cela ..."
|
||||
],
|
||||
"command": "git merge bugFix",
|
||||
"beforeCommand": "git checkout -b bugFix; git commit; git checkout master; git commit"
|
||||
"beforeCommand": "git checkout -b bugFix; git commit; git checkout main; git commit"
|
||||
}
|
||||
},
|
||||
{
|
||||
|
@ -641,8 +641,8 @@ exports.level = {
|
|||
"",
|
||||
"Maintenant tous les commits sont de la même couleur, ce qui indique que chaque branche contient tout le contenu du dépôt ! Woohoo!"
|
||||
],
|
||||
"command": "git checkout bugFix; git merge master",
|
||||
"beforeCommand": "git checkout -b bugFix; git commit; git checkout master; git commit; git merge bugFix"
|
||||
"command": "git checkout bugFix; git merge main",
|
||||
"beforeCommand": "git checkout -b bugFix; git commit; git checkout main; git commit; git merge bugFix"
|
||||
}
|
||||
},
|
||||
{
|
||||
|
@ -696,7 +696,7 @@ exports.level = {
|
|||
"",
|
||||
"所以,`main` 分支的颜色被混入到所有的提交记录,但 `bugFix` 没有。下面咱们让它也改变一下颜色。"
|
||||
],
|
||||
"beforeCommand": "git checkout -b bugFix; git commit; git checkout master; git commit"
|
||||
"beforeCommand": "git checkout -b bugFix; git commit; git checkout main; git commit"
|
||||
}
|
||||
},
|
||||
{
|
||||
|
@ -705,13 +705,13 @@ exports.level = {
|
|||
"beforeMarkdowns": [
|
||||
"咱们再把 `main` 分支合并到 `bugFix`:"
|
||||
],
|
||||
"command": "git checkout bugFix; git merge master",
|
||||
"command": "git checkout bugFix; git merge main",
|
||||
"afterMarkdowns": [
|
||||
"因为 `main` 继承自 `bugFix`,Git 什么都不用做,只是简单地把 `bugFix` 移动到 `main` 所指向的那个提交记录。",
|
||||
"",
|
||||
"现在所有提交记录的颜色都一样了,这表明每一个分支都包含了代码库的所有修改!大功告成!"
|
||||
],
|
||||
"beforeCommand": "git checkout -b bugFix; git commit; git checkout master; git commit; git merge bugFix"
|
||||
"beforeCommand": "git checkout -b bugFix; git commit; git checkout main; git commit; git merge bugFix"
|
||||
}
|
||||
},
|
||||
{
|
||||
|
@ -723,7 +723,7 @@ exports.level = {
|
|||
"* 创建新分支 `bugFix`",
|
||||
"* 用 `git checkout bugFix` 命令切换到该分支",
|
||||
"* 提交一次",
|
||||
"* 用 `git checkout master` 切换回 `main`",
|
||||
"* 用 `git checkout main` 切换回 `main`",
|
||||
"* 再提交一次",
|
||||
"* 用 `git merge` 把 `bugFix` 合并到 `main`",
|
||||
"",
|
||||
|
@ -741,7 +741,7 @@ exports.level = {
|
|||
"markdowns": [
|
||||
"## branch 以及 merge",
|
||||
"",
|
||||
"太好了! 我們已經知道怎麼使用 commit 和 branch 了。接下來要學的一招是如何合併(merge)兩個不同 branch 的工作。這讓我們可以建立一個新的 branch ,並且在上面開發新功能,然後合併回 master branch。",
|
||||
"太好了! 我們已經知道怎麼使用 commit 和 branch 了。接下來要學的一招是如何合併(merge)兩個不同 branch 的工作。這讓我們可以建立一個新的 branch ,並且在上面開發新功能,然後合併回 main branch。",
|
||||
"",
|
||||
"`git merge` 是我們要學習 merge 的第一個方法。該 merge 會產生一個特殊的 commit,它包含兩個唯一 parent commit。一個 commit 如果有兩個 parent commit 的話,那就表示:「我想把這兩個 parent commit 本身及它們的 所有的 parent commit 都包含進來。」",
|
||||
"",
|
||||
|
@ -765,7 +765,7 @@ exports.level = {
|
|||
"",
|
||||
"所以,`main` branch 的顏色被混入到所有的 commit,但 `bugFix` 沒有。接下來就改一下這裡吧。"
|
||||
],
|
||||
"beforeCommand": "git checkout -b bugFix; git commit; git checkout master; git commit"
|
||||
"beforeCommand": "git checkout -b bugFix; git commit; git checkout main; git commit"
|
||||
}
|
||||
},
|
||||
{
|
||||
|
@ -774,13 +774,13 @@ exports.level = {
|
|||
"beforeMarkdowns": [
|
||||
"讓我們 merge `main` branch 到 `bugFix` 吧。"
|
||||
],
|
||||
"command": "git checkout bugFix; git merge master",
|
||||
"command": "git checkout bugFix; git merge main",
|
||||
"afterMarkdowns": [
|
||||
"因為 `bugFix` branch只是 `main` branch 的 parent,git 什麼都不用做,只是簡單地把 `bugfix` branch 移動到 `main` 指向的 commit。",
|
||||
"",
|
||||
"現在所有的 commit 的顏色都是一樣的啦,這表示每一個 branch 都包含了所有文件的修改!太厲害了啦!"
|
||||
],
|
||||
"beforeCommand": "git checkout -b bugFix; git commit; git checkout master; git commit; git merge bugFix"
|
||||
"beforeCommand": "git checkout -b bugFix; git commit; git checkout main; git commit; git merge bugFix"
|
||||
}
|
||||
},
|
||||
{
|
||||
|
@ -834,7 +834,7 @@ exports.level = {
|
|||
"그런식으로 여기에 `bugFix`브랜치 쪽을 제외한 나머지 커밋만 `main` 브랜치의 색으로 칠해져 있습니다. 이걸 고쳐보죠..."
|
||||
],
|
||||
"command": "git merge bugFix",
|
||||
"beforeCommand": "git checkout -b bugFix; git commit; git checkout master; git commit"
|
||||
"beforeCommand": "git checkout -b bugFix; git commit; git checkout main; git commit"
|
||||
}
|
||||
},
|
||||
{
|
||||
|
@ -848,8 +848,8 @@ exports.level = {
|
|||
"",
|
||||
"짜잔! 이제 모든 커밋의 색이 같아졌고, 이는 두 브랜치가 모두 저장소의 모든 작업 내역을 포함하고 있다는 뜻입니다."
|
||||
],
|
||||
"command": "git checkout bugFix; git merge master",
|
||||
"beforeCommand": "git checkout -b bugFix; git commit; git checkout master; git commit; git merge bugFix"
|
||||
"command": "git checkout bugFix; git merge main",
|
||||
"beforeCommand": "git checkout -b bugFix; git commit; git checkout main; git commit; git merge bugFix"
|
||||
}
|
||||
},
|
||||
{
|
||||
|
@ -903,7 +903,7 @@ exports.level = {
|
|||
"И вот мы видим, что цвет ветки `main` подмешан к каждому коммиту, а ветки `bugFix` - нет. Это можно поправить."
|
||||
],
|
||||
"command": "git merge bugFix",
|
||||
"beforeCommand": "git checkout -b bugFix; git commit; git checkout master; git commit"
|
||||
"beforeCommand": "git checkout -b bugFix; git commit; git checkout main; git commit"
|
||||
}
|
||||
},
|
||||
{
|
||||
|
@ -917,8 +917,8 @@ exports.level = {
|
|||
"",
|
||||
"Теперь все коммиты одного цвета, что означает, что каждая ветка содержит все изменения репозитория! Поздравляем!"
|
||||
],
|
||||
"command": "git checkout bugFix; git merge master",
|
||||
"beforeCommand": "git checkout -b bugFix; git commit; git checkout master; git commit; git merge bugFix"
|
||||
"command": "git checkout bugFix; git merge main",
|
||||
"beforeCommand": "git checkout -b bugFix; git commit; git checkout main; git commit; git merge bugFix"
|
||||
}
|
||||
},
|
||||
{
|
||||
|
@ -972,7 +972,7 @@ exports.level = {
|
|||
"Тож ми бачимо що колір гілки `main` містять всі коміти, але не колір `bugFix`. Давайте виправимо це..."
|
||||
],
|
||||
"command": "git merge bugFix",
|
||||
"beforeCommand": "git checkout -b bugFix; git commit; git checkout master; git commit"
|
||||
"beforeCommand": "git checkout -b bugFix; git commit; git checkout main; git commit"
|
||||
}
|
||||
},
|
||||
{
|
||||
|
@ -986,8 +986,8 @@ exports.level = {
|
|||
"",
|
||||
"Тепер всі коміти одного кольору, що означає що кожен бранч включає в собі всю корисну інфу яка є в цьому репозиторії! Ура!"
|
||||
],
|
||||
"command": "git checkout bugFix; git merge master",
|
||||
"beforeCommand": "git checkout -b bugFix; git commit; git checkout master; git commit; git merge bugFix"
|
||||
"command": "git checkout bugFix; git merge main",
|
||||
"beforeCommand": "git checkout -b bugFix; git commit; git checkout main; git commit; git merge bugFix"
|
||||
}
|
||||
},
|
||||
{
|
||||
|
@ -1041,7 +1041,7 @@ exports.level = {
|
|||
"Vì vậy, ở đây chúng ta thấy rằng màu nhánh `main` được pha trộn vào tất cả các commit, nhưng màu` bugFix` thì không. Hãy sửa nó nào ..."
|
||||
],
|
||||
"command": "git merge bugFix",
|
||||
"beforeCommand": "git checkout -b bugFix; git commit; git checkout master; git commit"
|
||||
"beforeCommand": "git checkout -b bugFix; git commit; git checkout main; git commit"
|
||||
}
|
||||
},
|
||||
{
|
||||
|
@ -1055,8 +1055,8 @@ exports.level = {
|
|||
"",
|
||||
"Giờ thì tất cả commit đã có cùng màu, nghĩa là mỗi nhánh đã chứa tất cả thành quả trong kho! Ồ hố!"
|
||||
],
|
||||
"command": "git checkout bugFix; git merge master",
|
||||
"beforeCommand": "git checkout -b bugFix; git commit; git checkout master; git commit; git merge bugFix"
|
||||
"command": "git checkout bugFix; git merge main",
|
||||
"beforeCommand": "git checkout -b bugFix; git commit; git checkout main; git commit; git merge bugFix"
|
||||
}
|
||||
},
|
||||
{
|
||||
|
@ -1110,7 +1110,7 @@ exports.level = {
|
|||
"Torej tukaj vidimo, da je `main` branch barva zmešana v vseh commitih, `bugFix` barva pa ne. Popravimo to ..."
|
||||
],
|
||||
"command": "git merge bugFix",
|
||||
"beforeCommand": "git checkout -b bugFix; git commit; git checkout master; git commit"
|
||||
"beforeCommand": "git checkout -b bugFix; git commit; git checkout main; git commit"
|
||||
}
|
||||
},
|
||||
{
|
||||
|
@ -1124,8 +1124,8 @@ exports.level = {
|
|||
"",
|
||||
"Sedaj so vsi commiti iste barve, kar pomeni, da vsak branch vsebuje vse delo v repozitoriju!! Woohoo!"
|
||||
],
|
||||
"command": "git checkout bugFix; git merge master",
|
||||
"beforeCommand": "git checkout -b bugFix; git commit; git checkout master; git commit; git merge bugFix"
|
||||
"command": "git checkout bugFix; git merge main",
|
||||
"beforeCommand": "git checkout -b bugFix; git commit; git checkout main; git commit; git merge bugFix"
|
||||
}
|
||||
},
|
||||
{
|
||||
|
@ -1172,14 +1172,14 @@ exports.level = {
|
|||
"Użyjmy `merge` aby połączyć branch `bugFix` z `main`."
|
||||
],
|
||||
"afterMarkdowns": [
|
||||
"Wow! Widzialiście to? Przede wszystkim \"master\" wskazuje teraz na commit, który ma dwoje rodziców. Jeśli podążasz za strzałkami w górę drzewa zatwierdzenia od `main`, trafisz na każdy commit po drodze do korzenia. Oznacza to, że `main` zawiera teraz całą pracę w repozytorium.",
|
||||
"Wow! Widzialiście to? Przede wszystkim \"main\" wskazuje teraz na commit, który ma dwoje rodziców. Jeśli podążasz za strzałkami w górę drzewa zatwierdzenia od `main`, trafisz na każdy commit po drodze do korzenia. Oznacza to, że `main` zawiera teraz całą pracę w repozytorium.",
|
||||
"",
|
||||
"Czy widziałeś również, jak zmieniły się kolory zatwierdzeń? Aby Ci pomóc w nauce, dołączyłem kilka konwencji kolorów. Każdy branch ma swój własny kolor. Każdy commit staje się kolorem wynikającym z mieszania kolorów wszystkich branch-y, które commit-ujesz",
|
||||
"",
|
||||
"Więc tutaj widzimy, że kolor branch-a `main` uczestniczy w miksowaniu wszystkich commit-ów, ale kolor branch-u `bugFix` już nie. Naprawmy to..."
|
||||
],
|
||||
"command": "git merge bugFix",
|
||||
"beforeCommand": "git checkout -b bugFix; git commit; git checkout master; git commit"
|
||||
"beforeCommand": "git checkout -b bugFix; git commit; git checkout main; git commit"
|
||||
}
|
||||
},
|
||||
{
|
||||
|
@ -1193,8 +1193,8 @@ exports.level = {
|
|||
"",
|
||||
"Teraz wszystkie commit-y mają ten sam kolor, co oznacza, że każdy branch zawiera całą pracę znajdującą się w repozytorium! Super!"
|
||||
],
|
||||
"command": "git checkout bugFix; git merge master",
|
||||
"beforeCommand": "git checkout -b bugFix; git commit; git checkout master; git commit; git merge bugFix"
|
||||
"command": "git checkout bugFix; git merge main",
|
||||
"beforeCommand": "git checkout -b bugFix; git commit; git checkout main; git commit; git merge bugFix"
|
||||
}
|
||||
},
|
||||
{
|
||||
|
|
|
@ -65,18 +65,18 @@ exports.level = {
|
|||
"beforeMarkdowns": [
|
||||
"Here we have two branches yet again; note that the bugFix branch is currently selected (note the asterisk)",
|
||||
"",
|
||||
"We would like to move our work from bugFix directly onto the work from master. That way it would look like these two features were developed sequentially, when in reality they were developed in parallel.",
|
||||
"We would like to move our work from bugFix directly onto the work from main. That way it would look like these two features were developed sequentially, when in reality they were developed in parallel.",
|
||||
"",
|
||||
"Let's do that with the `git rebase` command."
|
||||
],
|
||||
"afterMarkdowns": [
|
||||
"Awesome! Now the work from our bugFix branch is right on top of master and we have a nice linear sequence of commits.",
|
||||
"Awesome! Now the work from our bugFix branch is right on top of main and we have a nice linear sequence of commits.",
|
||||
"",
|
||||
"Note that the commit C3 still exists somewhere (it has a faded appearance in the tree), and C3' is the \"copy\" that we rebased onto master.",
|
||||
"Note that the commit C3 still exists somewhere (it has a faded appearance in the tree), and C3' is the \"copy\" that we rebased onto main.",
|
||||
"",
|
||||
"The only problem is that master hasn't been updated either, let's do that now..."
|
||||
"The only problem is that main hasn't been updated either, let's do that now..."
|
||||
],
|
||||
"command": "git rebase master",
|
||||
"command": "git rebase main",
|
||||
"beforeCommand": "git commit; git checkout -b bugFix C1; git commit"
|
||||
}
|
||||
},
|
||||
|
@ -90,7 +90,7 @@ exports.level = {
|
|||
"There! Since `main` was an ancestor of `bugFix`, git simply moved the `main` branch reference forward in history."
|
||||
],
|
||||
"command": "git rebase bugFix",
|
||||
"beforeCommand": "git commit; git checkout -b bugFix C1; git commit; git rebase master; git checkout master"
|
||||
"beforeCommand": "git commit; git checkout -b bugFix C1; git commit; git rebase main; git checkout main"
|
||||
}
|
||||
},
|
||||
{
|
||||
|
@ -101,8 +101,8 @@ exports.level = {
|
|||
"",
|
||||
"* Checkout a new branch named `bugFix`",
|
||||
"* Commit once",
|
||||
"* Go back to master and commit again",
|
||||
"* Check out bugFix again and rebase onto master",
|
||||
"* Go back to main and commit again",
|
||||
"* Check out bugFix again and rebase onto main",
|
||||
"",
|
||||
"Good luck!"
|
||||
]
|
||||
|
@ -143,7 +143,7 @@ exports.level = {
|
|||
"",
|
||||
"Aber `main` ist jetzt nicht aktualisiert worden, lass uns das gerade noch nachholen ..."
|
||||
],
|
||||
"command": "git rebase master",
|
||||
"command": "git rebase main",
|
||||
"beforeCommand": "git commit; git checkout -b bugFix C1; git commit"
|
||||
}
|
||||
},
|
||||
|
@ -157,7 +157,7 @@ exports.level = {
|
|||
"So! Da `main` ein Vorgänger von `bugFix` war konnte Git hier einfach den Bezeichner `main` auf denselben Commit schieben, auf den auch `bugFix` zeigt."
|
||||
],
|
||||
"command": "git rebase bugFix",
|
||||
"beforeCommand": "git commit; git checkout -b bugFix C1; git commit; git rebase master; git checkout master"
|
||||
"beforeCommand": "git commit; git checkout -b bugFix C1; git commit; git rebase main; git checkout main"
|
||||
}
|
||||
},
|
||||
{
|
||||
|
@ -210,7 +210,7 @@ exports.level = {
|
|||
"",
|
||||
"一つ問題が残ってて、masterブランチがまだ最新化されていませんね。ちょっと直してみましょう。。"
|
||||
],
|
||||
"command": "git rebase master",
|
||||
"command": "git rebase main",
|
||||
"beforeCommand": "git commit; git checkout -b bugFix C1; git commit"
|
||||
}
|
||||
},
|
||||
|
@ -224,7 +224,7 @@ exports.level = {
|
|||
"できた!`main`は`bugFix`の直前のコミットだったので、gitは単純に`main`ブランチのポインタを前に進めただけでした。"
|
||||
],
|
||||
"command": "git rebase bugFix",
|
||||
"beforeCommand": "git commit; git checkout -b bugFix C1; git commit; git rebase master; git checkout master"
|
||||
"beforeCommand": "git commit; git checkout -b bugFix C1; git commit; git rebase main; git checkout main"
|
||||
}
|
||||
},
|
||||
{
|
||||
|
@ -266,18 +266,18 @@ exports.level = {
|
|||
"beforeMarkdowns": [
|
||||
"Acá tenemos dos ramas otra vez. Notar que la rama bugFix está actualmente seleccionada (tiene un asterisco)",
|
||||
"",
|
||||
"Nos gustaría mover nuestro trabajo de bugFix directamente sobre el trabajo de master. De ese modo, parecería que esas dos tareas se desarrollaron secuencialmente, cuando en realidad se hicieron en paralelo.",
|
||||
"Nos gustaría mover nuestro trabajo de bugFix directamente sobre el trabajo de main. De ese modo, parecería que esas dos tareas se desarrollaron secuencialmente, cuando en realidad se hicieron en paralelo.",
|
||||
"",
|
||||
"Hagámoslo usando el comando `git rebase`."
|
||||
],
|
||||
"afterMarkdowns": [
|
||||
"¡Genial! Ahora el trabajo de nuestra rama bugFix está justo encima del de master, y tenemos una secuencia lineal de commits.",
|
||||
"¡Genial! Ahora el trabajo de nuestra rama bugFix está justo encima del de main, y tenemos una secuencia lineal de commits.",
|
||||
"",
|
||||
"Notá que el commit C3 sigue existiendo en algún lado (aparece medio desvanecido en el árbol), y C3' es la \"copia\" que rebaseamos sobre master.",
|
||||
"Notá que el commit C3 sigue existiendo en algún lado (aparece medio desvanecido en el árbol), y C3' es la \"copia\" que rebaseamos sobre main.",
|
||||
"",
|
||||
"El único problema es que master todavía no se actualizó, resolvámoslo ahora..."
|
||||
"El único problema es que main todavía no se actualizó, resolvámoslo ahora..."
|
||||
],
|
||||
"command": "git rebase master",
|
||||
"command": "git rebase main",
|
||||
"beforeCommand": "git commit; git checkout -b bugFix C1; git commit"
|
||||
}
|
||||
},
|
||||
|
@ -291,7 +291,7 @@ exports.level = {
|
|||
"¡Ahí está! Como `main` era un ancestro de `bugFix`, git simplemente movió la referencia de `main` hacia adelante en la historia."
|
||||
],
|
||||
"command": "git rebase bugFix",
|
||||
"beforeCommand": "git commit; git checkout -b bugFix C1; git commit; git rebase master; git checkout master"
|
||||
"beforeCommand": "git commit; git checkout -b bugFix C1; git commit; git rebase main; git checkout main"
|
||||
}
|
||||
},
|
||||
{
|
||||
|
@ -302,8 +302,8 @@ exports.level = {
|
|||
"",
|
||||
"* Checkouteá una nueva rama llamada `bugFix`",
|
||||
"* Commiteá una vez",
|
||||
"* Volvé a master y commiteå de nuevo",
|
||||
"* Checkoutá bugFix otra vez y rebaseala sobre master",
|
||||
"* Volvé a main y commiteå de nuevo",
|
||||
"* Checkoutá bugFix otra vez y rebaseala sobre main",
|
||||
"",
|
||||
"¡Éxitos!"
|
||||
]
|
||||
|
@ -333,18 +333,18 @@ exports.level = {
|
|||
"beforeMarkdowns": [
|
||||
"Acá tenemos dos ramas otra vez. Nota que la rama bugFix está actualmente seleccionada (tiene un asterisco)",
|
||||
"",
|
||||
"Nos gustaría mover nuestro trabajo de bugFix directamente sobre el trabajo de master. De ese modo, parecería que esas dos tareas se desarrollaron secuencialmente, cuando en realidad se hicieron en paralelo.",
|
||||
"Nos gustaría mover nuestro trabajo de bugFix directamente sobre el trabajo de main. De ese modo, parecería que esas dos tareas se desarrollaron secuencialmente, cuando en realidad se hicieron en paralelo.",
|
||||
"",
|
||||
"Hagámoslo usando el comando `git rebase`."
|
||||
],
|
||||
"afterMarkdowns": [
|
||||
"¡Genial! Ahora el trabajo de nuestra rama bugFix está justo encima del de master, y tenemos una secuencia lineal de commits.",
|
||||
"¡Genial! Ahora el trabajo de nuestra rama bugFix está justo encima del de main, y tenemos una secuencia lineal de commits.",
|
||||
"",
|
||||
"Notá que el commit C3 sigue existiendo en algún lado (aparece medio desvanecido en el árbol), y C3' es la \"copia\" que rebaseamos sobre master.",
|
||||
"Notá que el commit C3 sigue existiendo en algún lado (aparece medio desvanecido en el árbol), y C3' es la \"copia\" que rebaseamos sobre main.",
|
||||
"",
|
||||
"El único problema es que master todavía no se actualizó, resolvámoslo ahora..."
|
||||
"El único problema es que main todavía no se actualizó, resolvámoslo ahora..."
|
||||
],
|
||||
"command": "git rebase master",
|
||||
"command": "git rebase main",
|
||||
"beforeCommand": "git commit; git checkout -b bugFix C1; git commit"
|
||||
}
|
||||
},
|
||||
|
@ -358,7 +358,7 @@ exports.level = {
|
|||
"¡Ahí está! Como `main` era un ancestro de `bugFix`, git simplemente movió la referencia de `main` hacia adelante en la historia."
|
||||
],
|
||||
"command": "git rebase bugFix",
|
||||
"beforeCommand": "git commit; git checkout -b bugFix C1; git commit; git rebase master; git checkout master"
|
||||
"beforeCommand": "git commit; git checkout -b bugFix C1; git commit; git rebase main; git checkout main"
|
||||
}
|
||||
},
|
||||
{
|
||||
|
@ -369,8 +369,8 @@ exports.level = {
|
|||
"",
|
||||
"* Cámbiate a una nueva rama llamada `bugFix`",
|
||||
"* Haz un commit de una vez",
|
||||
"* Vuelve a master y haz commit de nuevo",
|
||||
"* Cámbiate a la rama bugFix otra vez y rebaséala sobre master",
|
||||
"* Vuelve a main y haz commit de nuevo",
|
||||
"* Cámbiate a la rama bugFix otra vez y rebaséala sobre main",
|
||||
"",
|
||||
"¡Éxitos!"
|
||||
]
|
||||
|
@ -400,18 +400,18 @@ exports.level = {
|
|||
"beforeMarkdowns": [
|
||||
"Aquí tenemos dos ramas otra vez. Observa que la rama bugFix está actualmente seleccionada (tiene un asterisco)",
|
||||
"",
|
||||
"Nos gustaría mover nuestro trabajo de bugFix directamente sobre el trabajo de master. De ese modo, parecería que esas dos tareas se desarrollaron secuencialmente, cuando en realidad se hicieron en paralelo.",
|
||||
"Nos gustaría mover nuestro trabajo de bugFix directamente sobre el trabajo de main. De ese modo, parecería que esas dos tareas se desarrollaron secuencialmente, cuando en realidad se hicieron en paralelo.",
|
||||
"",
|
||||
"Hagámoslo usando el comando `git rebase`."
|
||||
],
|
||||
"afterMarkdowns": [
|
||||
"¡Genial! Ahora el trabajo de nuestra rama bugFix está justo encima del de master, y tenemos una secuencia lineal de commits.",
|
||||
"¡Genial! Ahora el trabajo de nuestra rama bugFix está justo encima del de main, y tenemos una secuencia lineal de commits.",
|
||||
"",
|
||||
"Nota que el commit C3 sigue existiendo en algún lado (aparece medio desvanecido en el árbol), y C3' es la \"copia\" que rebaseamos sobre master.",
|
||||
"Nota que el commit C3 sigue existiendo en algún lado (aparece medio desvanecido en el árbol), y C3' es la \"copia\" que rebaseamos sobre main.",
|
||||
"",
|
||||
"El único problema es que master todavía no se actualizó, resolvámoslo ahora..."
|
||||
"El único problema es que main todavía no se actualizó, resolvámoslo ahora..."
|
||||
],
|
||||
"command": "git rebase master",
|
||||
"command": "git rebase main",
|
||||
"beforeCommand": "git commit; git checkout -b bugFix C1; git commit"
|
||||
}
|
||||
},
|
||||
|
@ -425,7 +425,7 @@ exports.level = {
|
|||
"¡Ahí está! Como `main` era un ancestro de `bugFix`, git simplemente movió la referencia de `main` hacia adelante en la historia."
|
||||
],
|
||||
"command": "git rebase bugFix",
|
||||
"beforeCommand": "git commit; git checkout -b bugFix C1; git commit; git rebase master; git checkout master"
|
||||
"beforeCommand": "git commit; git checkout -b bugFix C1; git commit; git rebase main; git checkout main"
|
||||
}
|
||||
},
|
||||
{
|
||||
|
@ -436,8 +436,8 @@ exports.level = {
|
|||
"",
|
||||
"* Haz checkout de una nueva rama llamada `bugFix`",
|
||||
"* Crea un commit",
|
||||
"* Vuelve a la rama master y crea otro commit",
|
||||
"* Haz checkout en bugFix otra vez y haz rebase sobre master",
|
||||
"* Vuelve a la rama main y crea otro commit",
|
||||
"* Haz checkout en bugFix otra vez y haz rebase sobre main",
|
||||
"",
|
||||
"¡Misión cumplida!"
|
||||
]
|
||||
|
@ -467,18 +467,18 @@ exports.level = {
|
|||
"beforeMarkdowns": [
|
||||
"Aqui temos dois ramos novamente; note que o ramo bugFix está atualmente ativo (veja o asterisco)",
|
||||
"",
|
||||
"Queremos mover nosso trabalho do bugFix diretamente dentro do master. Desta forma, vai parecer que esses dois recursos foram desenvolvidos sequencialmente, quando na realidade foram feitos em paralelo.",
|
||||
"Queremos mover nosso trabalho do bugFix diretamente dentro do main. Desta forma, vai parecer que esses dois recursos foram desenvolvidos sequencialmente, quando na realidade foram feitos em paralelo.",
|
||||
"",
|
||||
"Vamos fazê-lo com o comando `git rebase`."
|
||||
],
|
||||
"afterMarkdowns": [
|
||||
"Incrível! Agora o trabalho do nosso ramo bugFix está logo após o do master, e temos uma linda sequência linear de commits.",
|
||||
"Incrível! Agora o trabalho do nosso ramo bugFix está logo após o do main, e temos uma linda sequência linear de commits.",
|
||||
"",
|
||||
"Perceba que o commit C3 ainda existe em algum lugar (ele está clareado na árvore), e que o C3' é a \"cópia\" que rebaseamos no master.",
|
||||
"Perceba que o commit C3 ainda existe em algum lugar (ele está clareado na árvore), e que o C3' é a \"cópia\" que rebaseamos no main.",
|
||||
"",
|
||||
"O único problema é que o master não foi atualizado também, vamos fazê-lo agora..."
|
||||
"O único problema é que o main não foi atualizado também, vamos fazê-lo agora..."
|
||||
],
|
||||
"command": "git rebase master",
|
||||
"command": "git rebase main",
|
||||
"beforeCommand": "git commit; git checkout -b bugFix C1; git commit"
|
||||
}
|
||||
},
|
||||
|
@ -492,7 +492,7 @@ exports.level = {
|
|||
"Aí está! Como o `main` era um ancestral do `bugFix`, o git simplesmente moveu a referência do ramo `main` para frente na história."
|
||||
],
|
||||
"command": "git rebase bugFix",
|
||||
"beforeCommand": "git commit; git checkout -b bugFix C1; git commit; git rebase master; git checkout master"
|
||||
"beforeCommand": "git commit; git checkout -b bugFix C1; git commit; git rebase main; git checkout main"
|
||||
}
|
||||
},
|
||||
{
|
||||
|
@ -503,8 +503,8 @@ exports.level = {
|
|||
"",
|
||||
"* Faça checkout de um novo branch chamado `bugFix`",
|
||||
"* Faça um commit",
|
||||
"* Volte ao master e faça um novo commit",
|
||||
"* Faça checkout do bugFix novamente e faça rebase no master",
|
||||
"* Volte ao main e faça um novo commit",
|
||||
"* Faça checkout do bugFix novamente e faça rebase no main",
|
||||
"",
|
||||
"Boa sorte!"
|
||||
]
|
||||
|
@ -539,13 +539,13 @@ exports.level = {
|
|||
"Imos lanzar o comando `git rebase`."
|
||||
],
|
||||
"afterMarkdowns": [
|
||||
"¡Buah chorvo! Agora o traballo da nosa rama `bugFix` está seguida de master, e temos unha fermosa línea de commits.",
|
||||
"¡Buah chorvo! Agora o traballo da nosa rama `bugFix` está seguida de main, e temos unha fermosa línea de commits.",
|
||||
"",
|
||||
"Percibe que o commit `C3` aínda existe nalgún lugar (el está borrado na árbore), e que `C3'` é a \"copia\" que rebasamos en master.",
|
||||
"Percibe que o commit `C3` aínda existe nalgún lugar (el está borrado na árbore), e que `C3'` é a \"copia\" que rebasamos en main.",
|
||||
"",
|
||||
"O único problema é que a rama master non foi actualizada tamén, ímolo facer agora..."
|
||||
"O único problema é que a rama main non foi actualizada tamén, ímolo facer agora..."
|
||||
],
|
||||
"command": "git rebase master",
|
||||
"command": "git rebase main",
|
||||
"beforeCommand": "git commit; git checkout -b bugFix C1; git commit"
|
||||
}
|
||||
},
|
||||
|
@ -559,7 +559,7 @@ exports.level = {
|
|||
"¡Xa está! Como `main` era um ancestro de `bugFix`, git simplemente moveu a referencia da rama `main` máis adiante na historia."
|
||||
],
|
||||
"command": "git rebase bugFix",
|
||||
"beforeCommand": "git commit; git checkout -b bugFix C1; git commit; git rebase master; git checkout master"
|
||||
"beforeCommand": "git commit; git checkout -b bugFix C1; git commit; git rebase main; git checkout main"
|
||||
}
|
||||
},
|
||||
{
|
||||
|
@ -570,8 +570,8 @@ exports.level = {
|
|||
"",
|
||||
"* Fai checkout de un novo branch chamado `bugFix`",
|
||||
"* Fai un commit",
|
||||
"* Regresa a master e fai un commit novamente",
|
||||
"* Móvete á rama bugFix outra vez e fai rebase sobre master",
|
||||
"* Regresa a main e fai un commit novamente",
|
||||
"* Móvete á rama bugFix outra vez e fai rebase sobre main",
|
||||
"",
|
||||
"Boa sorte!"
|
||||
]
|
||||
|
@ -601,18 +601,18 @@ exports.level = {
|
|||
"beforeMarkdowns": [
|
||||
"Ici nous avons encore une fois deux branches; notez que nous sommes sur la branche bugFix (cf. l'astérisque)",
|
||||
"",
|
||||
"Nous voudrions transférer notre travail de la branche 'bugFix' directement sur le travail existant dans 'master'. Ainsi on aurait l'impression que ces deux travaux ont été développés séquentiellement alors qu'en réalité ils ont été réalisés en parallèle.",
|
||||
"Nous voudrions transférer notre travail de la branche 'bugFix' directement sur le travail existant dans 'main'. Ainsi on aurait l'impression que ces deux travaux ont été développés séquentiellement alors qu'en réalité ils ont été réalisés en parallèle.",
|
||||
"",
|
||||
"Faisons cela avec la commande `git rebase`."
|
||||
],
|
||||
"afterMarkdowns": [
|
||||
"Super! Désormais, le travail de la branche 'bugFix' est juste en haut de la branche 'master' et nous avons une belle séquence linéaire de commits.",
|
||||
"Super! Désormais, le travail de la branche 'bugFix' est juste en haut de la branche 'main' et nous avons une belle séquence linéaire de commits.",
|
||||
"",
|
||||
"Notez que le commit C3 existe toujours quelque part (il est en grisé sur l'arbre), et C3' est la \"copie\" que nous avons créée sur master avec rebase.",
|
||||
"Notez que le commit C3 existe toujours quelque part (il est en grisé sur l'arbre), et C3' est la \"copie\" que nous avons créée sur main avec rebase.",
|
||||
"",
|
||||
"Le seul problème est que master n'a pas été mis à jour, faisons cela maintenant…"
|
||||
"Le seul problème est que main n'a pas été mis à jour, faisons cela maintenant…"
|
||||
],
|
||||
"command": "git rebase master",
|
||||
"command": "git rebase main",
|
||||
"beforeCommand": "git commit; git checkout -b bugFix C1; git commit"
|
||||
}
|
||||
},
|
||||
|
@ -629,7 +629,7 @@ exports.level = {
|
|||
"Continuons et essayons ce niveau !"
|
||||
],
|
||||
"command": "git rebase bugFix",
|
||||
"beforeCommand": "git commit; git checkout -b bugFix C1; git commit; git rebase master; git checkout master"
|
||||
"beforeCommand": "git commit; git checkout -b bugFix C1; git commit; git rebase main; git checkout main"
|
||||
}
|
||||
},
|
||||
{
|
||||
|
@ -640,8 +640,8 @@ exports.level = {
|
|||
"",
|
||||
"* Positionnez-vous (checkout) sur une nouvelle branche nommée `bugFix`",
|
||||
"* Faites un commit",
|
||||
"* Retournez sur master et faites un nouveau commit",
|
||||
"* Positionnez-vous à nouveau sur bugFix et faites un rebase sur master",
|
||||
"* Retournez sur main et faites un nouveau commit",
|
||||
"* Positionnez-vous à nouveau sur bugFix et faites un rebase sur main",
|
||||
"",
|
||||
"Bonne chance !"
|
||||
]
|
||||
|
@ -671,17 +671,17 @@ exports.level = {
|
|||
"beforeMarkdowns": [
|
||||
"还是准备了两个分支;注意当前所在的分支是 bugFix(星号标识的是当前分支)",
|
||||
"",
|
||||
"我们想要把 bugFix 分支里的工作直接移到 master 分支上。移动以后会使得两个分支的功能看起来像是按顺序开发,但实际上它们是并行开发的。",
|
||||
"我们想要把 bugFix 分支里的工作直接移到 main 分支上。移动以后会使得两个分支的功能看起来像是按顺序开发,但实际上它们是并行开发的。",
|
||||
"",
|
||||
"咱们这次用 `git rebase` 实现此目标"
|
||||
],
|
||||
"command": "git rebase master",
|
||||
"command": "git rebase main",
|
||||
"afterMarkdowns": [
|
||||
"怎么样?!现在 bugFix 分支上的工作在 master 的最顶端,同时我们也得到了一个更线性的提交序列。",
|
||||
"怎么样?!现在 bugFix 分支上的工作在 main 的最顶端,同时我们也得到了一个更线性的提交序列。",
|
||||
"",
|
||||
"注意,提交记录 C3 依然存在(树上那个半透明的节点),而 C3' 是我们 Rebase 到 master 分支上的 C3 的副本。",
|
||||
"注意,提交记录 C3 依然存在(树上那个半透明的节点),而 C3' 是我们 Rebase 到 main 分支上的 C3 的副本。",
|
||||
"",
|
||||
"现在唯一的问题就是 master 还没有更新,下面咱们就来更新它吧……"
|
||||
"现在唯一的问题就是 main 还没有更新,下面咱们就来更新它吧……"
|
||||
],
|
||||
"beforeCommand": "git commit; git checkout -b bugFix C1; git commit"
|
||||
}
|
||||
|
@ -696,7 +696,7 @@ exports.level = {
|
|||
"afterMarkdowns": [
|
||||
"好了!由于 `bugFix` 继承自 `main`,所以 Git 只是简单的把 `main` 分支的引用向前移动了一下而已。"
|
||||
],
|
||||
"beforeCommand": "git commit; git checkout -b bugFix C1; git commit; git rebase master; git checkout master"
|
||||
"beforeCommand": "git commit; git checkout -b bugFix C1; git commit; git rebase main; git checkout main"
|
||||
}
|
||||
},
|
||||
{
|
||||
|
@ -707,8 +707,8 @@ exports.level = {
|
|||
"",
|
||||
"* 新建并切换到 `bugFix` 分支",
|
||||
"* 提交一次",
|
||||
"* 切换回 master 分支再提交一次",
|
||||
"* 再次切换到 bugFix 分支,rebase 到 master 上",
|
||||
"* 切换回 main 分支再提交一次",
|
||||
"* 再次切换到 bugFix 分支,rebase 到 main 上",
|
||||
"",
|
||||
"祝你好运!"
|
||||
]
|
||||
|
@ -738,17 +738,17 @@ exports.level = {
|
|||
"beforeMarkdowns": [
|
||||
"這裡,還是有兩個 branch;注意目前我們所在的 branch 是 bugFix(看那顆星啦)",
|
||||
"",
|
||||
"我們想要把在 bugfix 所做的修改直接移到 master branch上。使用 rebasing 的話,兩個 branch 看起來像是依序按順序進行修改,實際上它們的修改是平行進行的。",
|
||||
"我們想要把在 bugfix 所做的修改直接移到 main branch上。使用 rebasing 的話,兩個 branch 看起來像是依序按順序進行修改,實際上它們的修改是平行進行的。",
|
||||
"",
|
||||
"用 `git rebase` 來實現吧"
|
||||
],
|
||||
"command": "git rebase master",
|
||||
"command": "git rebase main",
|
||||
"afterMarkdowns": [
|
||||
"很厲害吧!現在 bugFix branch 上的工作在 master branch 的最前端,同時我們也得到了一個更加線性的 commit 順序。",
|
||||
"很厲害吧!現在 bugFix branch 上的工作在 main branch 的最前端,同時我們也得到了一個更加線性的 commit 順序。",
|
||||
"",
|
||||
"注意,本來的 commit C3 沒有消失(在圖上面呈現陰影),而我們\"複製\" C3,將它的副本 C3' 接在 master branch 的後面。",
|
||||
"注意,本來的 commit C3 沒有消失(在圖上面呈現陰影),而我們\"複製\" C3,將它的副本 C3' 接在 main branch 的後面。",
|
||||
"",
|
||||
"現在唯一的問題是 master branch 還沒有更新...我們接下來就更新它吧!"
|
||||
"現在唯一的問題是 main branch 還沒有更新...我們接下來就更新它吧!"
|
||||
],
|
||||
"beforeCommand": "git commit; git checkout -b bugFix C1; git commit"
|
||||
}
|
||||
|
@ -763,7 +763,7 @@ exports.level = {
|
|||
"afterMarkdowns": [
|
||||
"完成!因為 `main` branch 是 `bugFix` 的 parent,所以 git 只是把 `main` branch 往前移動到 `bugFix` 上。"
|
||||
],
|
||||
"beforeCommand": "git commit; git checkout -b bugFix C1; git commit; git rebase master; git checkout master"
|
||||
"beforeCommand": "git commit; git checkout -b bugFix C1; git commit; git rebase main; git checkout main"
|
||||
}
|
||||
},
|
||||
{
|
||||
|
@ -774,8 +774,8 @@ exports.level = {
|
|||
"",
|
||||
"* 建立 `bugFix` branch",
|
||||
"* commit 一次",
|
||||
"* 切換回 master branch 再 commit 一次",
|
||||
"* 再次切換到 bugFix branch,接著 rebase bugFix 這個 branch 到 master branch 上",
|
||||
"* 切換回 main branch 再 commit 一次",
|
||||
"* 再次切換到 bugFix branch,接著 rebase bugFix 這個 branch 到 main branch 上",
|
||||
"",
|
||||
"祝你好運啦!"
|
||||
]
|
||||
|
@ -805,18 +805,18 @@ exports.level = {
|
|||
"beforeMarkdowns": [
|
||||
"여기 또 브랜치 두 개가 있습니다; bugFix브랜치가 현재 선택됐다는 점 눈여겨 보세요 (별표 표시)",
|
||||
"",
|
||||
"bugFix 브랜치에서의 작업을 master 브랜치 위로 직접 옮겨 놓으려고 합니다. 그렇게 하면, 실제로는 두 기능을 따로따로 개발했지만, 마치 순서대로 개발한 것처럼 보이게 됩니다.",
|
||||
"bugFix 브랜치에서의 작업을 main 브랜치 위로 직접 옮겨 놓으려고 합니다. 그렇게 하면, 실제로는 두 기능을 따로따로 개발했지만, 마치 순서대로 개발한 것처럼 보이게 됩니다.",
|
||||
"",
|
||||
"`git rebase` 명령어로 함께 해보죠."
|
||||
],
|
||||
"afterMarkdowns": [
|
||||
"오! 이제 bugFix 브랜치의 작업 내용이 master의 바로 위에 깔끔한 한 줄의 커밋으로 보이게 됐습니다.",
|
||||
"",
|
||||
"C3 커밋은 어딘가에 아직 남아있고(그림에서 흐려짐), C3'는 master 위에 올려 놓은 복사본입니다.",
|
||||
"C3 커밋은 어딘가에 아직 남아있고(그림에서 흐려짐), C3'는 main 위에 올려 놓은 복사본입니다.",
|
||||
"",
|
||||
"master가 아직 그대로라는 문제가 남아있는데요, 바로 해결해보죠..."
|
||||
],
|
||||
"command": "git rebase master",
|
||||
"command": "git rebase main",
|
||||
"beforeCommand": "git commit; git checkout -b bugFix C1; git commit"
|
||||
}
|
||||
},
|
||||
|
@ -830,7 +830,7 @@ exports.level = {
|
|||
"보세요! `main`가 `bugFix`의 부모쪽에 있었기 때문에, 단순히 그 브랜치를 더 앞쪽의 커밋을 가리키게 이동하는 것이 전부입니다."
|
||||
],
|
||||
"command": "git rebase bugFix",
|
||||
"beforeCommand": "git commit; git checkout -b bugFix C1; git commit; git rebase master; git checkout master"
|
||||
"beforeCommand": "git commit; git checkout -b bugFix C1; git commit; git rebase main; git checkout main"
|
||||
}
|
||||
},
|
||||
{
|
||||
|
@ -883,7 +883,7 @@ exports.level = {
|
|||
"",
|
||||
"Единственная проблема - ветка `main` не обновлена до последних изменений. Это легко исправить."
|
||||
],
|
||||
"command": "git rebase master",
|
||||
"command": "git rebase main",
|
||||
"beforeCommand": "git commit; git checkout -b bugFix C1; git commit"
|
||||
}
|
||||
},
|
||||
|
@ -897,7 +897,7 @@ exports.level = {
|
|||
"Вуаля! Так как `main` был предком `bugFix`, git просто сдвинул ссылку на `main` вперёд."
|
||||
],
|
||||
"command": "git rebase bugFix",
|
||||
"beforeCommand": "git commit; git checkout -b bugFix C1; git commit; git rebase master; git checkout master"
|
||||
"beforeCommand": "git commit; git checkout -b bugFix C1; git commit; git rebase main; git checkout main"
|
||||
}
|
||||
},
|
||||
{
|
||||
|
@ -939,18 +939,18 @@ exports.level = {
|
|||
"beforeMarkdowns": [
|
||||
"Ми знову маємо дві гілки; зауваж, що наразі вибрана гілка bugFix (вважай зірочку)",
|
||||
"",
|
||||
"Ми хочемо перемістити наші зміни з гілки bugFix прямо до змін з гілки master. Тоді це буде виглядати наче ці зміни були додані одна за одною, хоча насправді вони були додані одночасно.",
|
||||
"Ми хочемо перемістити наші зміни з гілки bugFix прямо до змін з гілки main. Тоді це буде виглядати наче ці зміни були додані одна за одною, хоча насправді вони були додані одночасно.",
|
||||
"",
|
||||
"Давайте зробимо це за допомогою команди `git rebase`."
|
||||
],
|
||||
"afterMarkdowns": [
|
||||
"Добре! Тепер зміни з гілки bugFix знаходяться прямо попереду змін з master й ми отримали зручну лінійну послідовність комітів.",
|
||||
"Добре! Тепер зміни з гілки bugFix знаходяться прямо попереду змін з main й ми отримали зручну лінійну послідовність комітів.",
|
||||
"",
|
||||
"Вважай що коміт C3 досі десь існує (в дереві він тьмяніший за решту), й C3' це \"копія\" яку ми заребейсили в master.",
|
||||
"Вважай що коміт C3 досі десь існує (в дереві він тьмяніший за решту), й C3' це \"копія\" яку ми заребейсили в main.",
|
||||
"",
|
||||
"Є лише одна проблема: гілка master також не була оновлена, давайте зробимо це наступним кроком..."
|
||||
"Є лише одна проблема: гілка main також не була оновлена, давайте зробимо це наступним кроком..."
|
||||
],
|
||||
"command": "git rebase master",
|
||||
"command": "git rebase main",
|
||||
"beforeCommand": "git commit; git checkout -b bugFix C1; git commit"
|
||||
}
|
||||
},
|
||||
|
@ -964,7 +964,7 @@ exports.level = {
|
|||
"Вуаля! Так як `main` це предок `bugFix`, git просто просунув посилання гілки `main` вперед в історії."
|
||||
],
|
||||
"command": "git rebase bugFix",
|
||||
"beforeCommand": "git commit; git checkout -b bugFix C1; git commit; git rebase master; git checkout master"
|
||||
"beforeCommand": "git commit; git checkout -b bugFix C1; git commit; git rebase main; git checkout main"
|
||||
}
|
||||
},
|
||||
{
|
||||
|
@ -975,8 +975,8 @@ exports.level = {
|
|||
"",
|
||||
"* Зачекауть (checkout) новий бранч з назвою `bugFix`",
|
||||
"* Зроби один коміт",
|
||||
"* Повернись на master й зроби ще один коміт",
|
||||
"* Зачекауть bugFix знову й заребейсь його на master",
|
||||
"* Повернись на main й зроби ще один коміт",
|
||||
"* Зачекауть bugFix знову й заребейсь його на main",
|
||||
"",
|
||||
"Нехай щастить!"
|
||||
]
|
||||
|
@ -1006,18 +1006,18 @@ exports.level = {
|
|||
"beforeMarkdowns": [
|
||||
"Giờ ta lại có 2 nhánh; để ý rằng nhánh bugFix đang được chọn (thấy dấu hoa thị chứ?)",
|
||||
"",
|
||||
"Ta muốn chuyển bugFix trực tiếp sang master. Theo cách đó thì các chức năng nhìn có vẻ được phát triển tuần tự, trong khi thực tế chúng được phát triển song song.",
|
||||
"Ta muốn chuyển bugFix trực tiếp sang main. Theo cách đó thì các chức năng nhìn có vẻ được phát triển tuần tự, trong khi thực tế chúng được phát triển song song.",
|
||||
"",
|
||||
"Dùng lệnh `git rebase` để thử nào"
|
||||
],
|
||||
"afterMarkdowns": [
|
||||
"Tuyệt vời! Giờ thành quả của nhánh bugFix nằm ngay trên master và ta có các commit nằm thẳng tuột.",
|
||||
"Tuyệt vời! Giờ thành quả của nhánh bugFix nằm ngay trên main và ta có các commit nằm thẳng tuột.",
|
||||
"",
|
||||
"Để ý rằng commit C3 vẫn nằm đâu đó (đã được làm mờ), và commit C3' là bản \"sao chép\" mà ta dán lên nhánh master.",
|
||||
"Để ý rằng commit C3 vẫn nằm đâu đó (đã được làm mờ), và commit C3' là bản \"sao chép\" mà ta dán lên nhánh main.",
|
||||
"",
|
||||
"Vấn đề duy nhất bây giờ là nhánh master vẫn chưa được cập nhật, làm luôn cho nóng nào..."
|
||||
"Vấn đề duy nhất bây giờ là nhánh main vẫn chưa được cập nhật, làm luôn cho nóng nào..."
|
||||
],
|
||||
"command": "git rebase master",
|
||||
"command": "git rebase main",
|
||||
"beforeCommand": "git commit; git checkout -b bugFix C1; git commit"
|
||||
}
|
||||
},
|
||||
|
@ -1031,7 +1031,7 @@ exports.level = {
|
|||
"Đó! Bởi vì `main` là cha ông của `bugFix`, git đơn giản chuyển tham chiếu của nhánh `main` tiến lên."
|
||||
],
|
||||
"command": "git rebase bugFix",
|
||||
"beforeCommand": "git commit; git checkout -b bugFix C1; git commit; git rebase master; git checkout master"
|
||||
"beforeCommand": "git commit; git checkout -b bugFix C1; git commit; git rebase main; git checkout main"
|
||||
}
|
||||
},
|
||||
{
|
||||
|
@ -1042,8 +1042,8 @@ exports.level = {
|
|||
"",
|
||||
"* Chuyển sang nhánh mới tên là `bugFix`",
|
||||
"* Commit một lần",
|
||||
"* Quay về master và commit lần nữa",
|
||||
"* Quay trở lại bugFix và rebase sang master",
|
||||
"* Quay về main và commit lần nữa",
|
||||
"* Quay trở lại bugFix và rebase sang main",
|
||||
"",
|
||||
"Chúc may mắn!"
|
||||
]
|
||||
|
@ -1079,11 +1079,11 @@ exports.level = {
|
|||
"afterMarkdowns": [
|
||||
"Super! Sedaj je naše delo iz bugFix brancha na vrhu masterja in imamo lepo zaporedje commitov.",
|
||||
"",
|
||||
"Omenimo, da commit C3 še vedno obstaja nekje (v drevesu je zbledel), in C3' je v bistvu \"kopija\", ki smo jo rebaseali na master.",
|
||||
"Omenimo, da commit C3 še vedno obstaja nekje (v drevesu je zbledel), in C3' je v bistvu \"kopija\", ki smo jo rebaseali na main.",
|
||||
"",
|
||||
"Edini problem je, da tudi master ni bil posodobljen, naredimo to sedaj ..."
|
||||
"Edini problem je, da tudi main ni bil posodobljen, naredimo to sedaj ..."
|
||||
],
|
||||
"command": "git rebase master",
|
||||
"command": "git rebase main",
|
||||
"beforeCommand": "git commit; git checkout -b bugFix C1; git commit"
|
||||
}
|
||||
},
|
||||
|
@ -1097,7 +1097,7 @@ exports.level = {
|
|||
"Tako! Ker je bil `main` prednik `bugFix`, je git enostavno premaknil `main` branch referenco naprej v zgodovini."
|
||||
],
|
||||
"command": "git rebase bugFix",
|
||||
"beforeCommand": "git commit; git checkout -b bugFix C1; git commit; git rebase master; git checkout master"
|
||||
"beforeCommand": "git commit; git checkout -b bugFix C1; git commit; git rebase main; git checkout main"
|
||||
}
|
||||
},
|
||||
{
|
||||
|
@ -1108,8 +1108,8 @@ exports.level = {
|
|||
"",
|
||||
"* Checkoutaj nov branch poimenovan `bugFix`",
|
||||
"* Enkrat commitaj",
|
||||
"* Pojdi nazaj na master in commitaj ponovno",
|
||||
"* Ponovno checkoutaj bugFix in ga rebaseaj na master",
|
||||
"* Pojdi nazaj na main in commitaj ponovno",
|
||||
"* Ponovno checkoutaj bugFix in ga rebaseaj na main",
|
||||
"",
|
||||
"Srečno!"
|
||||
]
|
||||
|
@ -1139,18 +1139,18 @@ exports.level = {
|
|||
"beforeMarkdowns": [
|
||||
"Tutaj znowu mamy dwa gałęzie (branch-e); zwróć uwagę, że branch bugFix jest aktualnie wybrany (zwróć uwagę, że ma gwiazdkę)",
|
||||
"",
|
||||
"Chcielibyśmy przenieść nasze pracę z branch-a bugFix bezpośrednio do branch-a master. W ten sposób wyglądałoby to tak, jakby te dwa zadania były rozwijane sekwencyjnie, podczas gdy w rzeczywistości rozwijano je równolegle.",
|
||||
"Chcielibyśmy przenieść nasze pracę z branch-a bugFix bezpośrednio do branch-a main. W ten sposób wyglądałoby to tak, jakby te dwa zadania były rozwijane sekwencyjnie, podczas gdy w rzeczywistości rozwijano je równolegle.",
|
||||
"",
|
||||
"Zróbmy to za pomocą polecenia `git rebase`."
|
||||
],
|
||||
"afterMarkdowns": [
|
||||
"Świetnie! Teraz nasz branch bugFix znajduje się tuż nad master i mamy ładną liniową sekwencję zatwierdzeń tj. commit-ów.",
|
||||
"Świetnie! Teraz nasz branch bugFix znajduje się tuż nad main i mamy ładną liniową sekwencję zatwierdzeń tj. commit-ów.",
|
||||
"",
|
||||
"Zauważ, że commit C3 nadal gdzieś istnieje (ma wyblakły wygląd w drzewie), a commit C3' jest \"kopią\", którą nadpisujemy na master.",
|
||||
"Zauważ, że commit C3 nadal gdzieś istnieje (ma wyblakły wygląd w drzewie), a commit C3' jest \"kopią\", którą nadpisujemy na main.",
|
||||
"",
|
||||
"Jedynym problemem jest to, że master też nie został zaktualizowany, zróbmy to teraz..."
|
||||
"Jedynym problemem jest to, że main też nie został zaktualizowany, zróbmy to teraz..."
|
||||
],
|
||||
"command": "git rebase master",
|
||||
"command": "git rebase main",
|
||||
"beforeCommand": "git commit; git checkout -b bugFix C1; git commit"
|
||||
}
|
||||
},
|
||||
|
@ -1164,7 +1164,7 @@ exports.level = {
|
|||
"Oto jest! Ponieważ `main` był przodkiem `bugFix`, GIT po prostu przesunął odniesienie do branch-a `main` do przodu w historii."
|
||||
],
|
||||
"command": "git rebase bugFix",
|
||||
"beforeCommand": "git commit; git checkout -b bugFix C1; git commit; git rebase master; git checkout master"
|
||||
"beforeCommand": "git commit; git checkout -b bugFix C1; git commit; git rebase main; git checkout main"
|
||||
}
|
||||
},
|
||||
{
|
||||
|
@ -1175,8 +1175,8 @@ exports.level = {
|
|||
"",
|
||||
"* Przejdź do nowego utworzonego branch-u o nazwie `bugFix`",
|
||||
"* Zrób commit",
|
||||
"* Wróć do branch-a master i zrób kolejny commit",
|
||||
"* Przejdź do bugFix oraz połącz za pomocą rebase z master",
|
||||
"* Wróć do branch-a main i zrób kolejny commit",
|
||||
"* Przejdź do bugFix oraz połącz za pomocą rebase z main",
|
||||
"",
|
||||
"Powodzenia, misja zakończona!"
|
||||
]
|
||||
|
|
|
@ -76,7 +76,7 @@ exports.level = {
|
|||
"Let's look at a quick example. For this tree below:"
|
||||
],
|
||||
"afterMarkdowns": [
|
||||
"The command `git describe master` would output:",
|
||||
"The command `git describe main` would output:",
|
||||
"",
|
||||
"`v1_2_gC2`",
|
||||
"",
|
||||
|
@ -139,7 +139,7 @@ exports.level = {
|
|||
"Regardons un petit exemple. Prenons cet arbre :"
|
||||
],
|
||||
"afterMarkdowns": [
|
||||
"La commande`git describe master` donne le résultat :",
|
||||
"La commande`git describe main` donne le résultat :",
|
||||
"",
|
||||
"`v1_2_gC2`",
|
||||
"",
|
||||
|
@ -202,7 +202,7 @@ exports.level = {
|
|||
"讓我們來看一個例子,對於下面的 tree:"
|
||||
],
|
||||
"afterMarkdowns": [
|
||||
"`git describe master` 會輸出:",
|
||||
"`git describe main` 會輸出:",
|
||||
"",
|
||||
"`v1_2_gC2`",
|
||||
"",
|
||||
|
@ -267,7 +267,7 @@ exports.level = {
|
|||
"让我们来看一个例子,对于下面的提交树:"
|
||||
],
|
||||
"afterMarkdowns": [
|
||||
"`git describe master` 会输出:",
|
||||
"`git describe main` 会输出:",
|
||||
"",
|
||||
"`v1_2_gC2`",
|
||||
"",
|
||||
|
@ -330,7 +330,7 @@ exports.level = {
|
|||
"Veamos un ejemplo breve. Para este árbol de commits:"
|
||||
],
|
||||
"afterMarkdowns": [
|
||||
"El comando `git describe master` mostraría:",
|
||||
"El comando `git describe main` mostraría:",
|
||||
"",
|
||||
"`v1_2_gC2`",
|
||||
"",
|
||||
|
@ -393,7 +393,7 @@ exports.level = {
|
|||
"Veamos un ejemplo breve. Para este árbol de commits:"
|
||||
],
|
||||
"afterMarkdowns": [
|
||||
"El comando `git describe master` mostraría:",
|
||||
"El comando `git describe main` mostraría:",
|
||||
"",
|
||||
"`v1_2_gC2`",
|
||||
"",
|
||||
|
@ -456,7 +456,7 @@ exports.level = {
|
|||
"Vejamos um exemplo rápido. Para a árvore abaixo:"
|
||||
],
|
||||
"afterMarkdowns": [
|
||||
"O comando `git describe master` daria a saída:",
|
||||
"O comando `git describe main` daria a saída:",
|
||||
"",
|
||||
"`v1_2_gC2`",
|
||||
"",
|
||||
|
@ -519,7 +519,7 @@ exports.level = {
|
|||
"Vexamos un exemplo rápido. Para a árbore de abaixo:"
|
||||
],
|
||||
"afterMarkdowns": [
|
||||
"O comando `git describe master` daría a saída:",
|
||||
"O comando `git describe main` daría a saída:",
|
||||
"",
|
||||
"`v1_2_gC2`",
|
||||
"",
|
||||
|
@ -584,7 +584,7 @@ exports.level = {
|
|||
"Schauen wir uns das schnell an einem Beispiel an. Für den folgenden Baum:"
|
||||
],
|
||||
"afterMarkdowns": [
|
||||
"Der Befehl `git describe master` würde folgendes ausgeben:",
|
||||
"Der Befehl `git describe main` würde folgendes ausgeben:",
|
||||
"",
|
||||
"`v1_2_gC2`",
|
||||
"",
|
||||
|
@ -647,7 +647,7 @@ exports.level = {
|
|||
"軽い例を見てみましょう。この木においての例は以下のようになります:"
|
||||
],
|
||||
"afterMarkdowns": [
|
||||
"コマンド`git describe master`の結果は以下のようになります:",
|
||||
"コマンド`git describe main`の結果は以下のようになります:",
|
||||
"",
|
||||
"`v1_2_gC2`",
|
||||
"",
|
||||
|
@ -710,7 +710,7 @@ exports.level = {
|
|||
"Посмотрим на простой пример. Для дерева, показанного ниже:"
|
||||
],
|
||||
"afterMarkdowns": [
|
||||
"Команда `git describe master` выведет:",
|
||||
"Команда `git describe main` выведет:",
|
||||
"",
|
||||
"`v1_2_gC2`",
|
||||
"",
|
||||
|
@ -773,7 +773,7 @@ exports.level = {
|
|||
"간단한 예제를 확인해 봅시다. 아래의 트리에서:"
|
||||
],
|
||||
"afterMarkdowns": [
|
||||
"`git describe master` 명령은 다음을 출력합니다:",
|
||||
"`git describe main` 명령은 다음을 출력합니다:",
|
||||
"",
|
||||
"`v1_2_gC2`",
|
||||
"",
|
||||
|
@ -836,7 +836,7 @@ exports.level = {
|
|||
"Розгляньмо короткий приклад. Для дерева нижче:"
|
||||
],
|
||||
"afterMarkdowns": [
|
||||
"Команда `git describe master` виведе:",
|
||||
"Команда `git describe main` виведе:",
|
||||
"",
|
||||
"`v1_2_gC2`",
|
||||
"",
|
||||
|
@ -899,7 +899,7 @@ exports.level = {
|
|||
"Cùng xem nhanh một ví dụ trên cây lịch sử phía dưới:"
|
||||
],
|
||||
"afterMarkdowns": [
|
||||
"Câu lệnh `git describe master` sẽ cho kết quả:",
|
||||
"Câu lệnh `git describe main` sẽ cho kết quả:",
|
||||
"",
|
||||
"`v1_2_gC2`",
|
||||
"",
|
||||
|
@ -962,7 +962,7 @@ exports.level = {
|
|||
"Poglejmo hiter primer. Za drevo spodaj:"
|
||||
],
|
||||
"afterMarkdowns": [
|
||||
"Bi ukaz `git describe master` izpisal:",
|
||||
"Bi ukaz `git describe main` izpisal:",
|
||||
"",
|
||||
"`v1_2_gC2`",
|
||||
"",
|
||||
|
|
|
@ -99,7 +99,7 @@ exports.level = {
|
|||
"",
|
||||
"Tous ces debug se retrouvent dans une branche particulière. Je trouve le bug et le répare, comme toujours !",
|
||||
"",
|
||||
"Le seul problème c'est que je ne peux pas faire de merge ou rebase, car tous ces commits de debug seront dans le master. Il doit y avoir une autre façon..."
|
||||
"Le seul problème c'est que je ne peux pas faire de merge ou rebase, car tous ces commits de debug seront dans le main. Il doit y avoir une autre façon..."
|
||||
]
|
||||
}
|
||||
},
|
||||
|
|
|
@ -75,7 +75,7 @@ exports.level = {
|
|||
"* We will re-order the commits so the one we want to change is on top with `git rebase -i`",
|
||||
"* We will `git commit --amend` to make the slight modification",
|
||||
"* Then we will re-order the commits back to how they were previously with `git rebase -i`",
|
||||
"* Finally, we will move master to this updated part of the tree to finish the level (via the method of your choosing)",
|
||||
"* Finally, we will move main to this updated part of the tree to finish the level (via the method of your choosing)",
|
||||
"",
|
||||
"There are many ways to accomplish this overall goal (I see you eye-ing cherry-pick), and we will see more of them later, but for now let's focus on this technique.",
|
||||
"Lastly, pay attention to the goal state here -- since we move the commits twice, they both get an apostrophe appended. One more apostrophe is added for the commit we amend, which gives us the final form of the tree ",
|
||||
|
@ -109,7 +109,7 @@ exports.level = {
|
|||
"* Nous allons réordonner les commits pour que celui que nous voulions changer soit sur le dessus `git rebase -i`",
|
||||
"* Nous allons utiliser `git commit --amend` pour faire les petites modifications",
|
||||
"* Nous allons réordonner les commits dans l'ordre original avec `git rebase -i`",
|
||||
"* Finalement, nous allons déplacer master vers la nouvelle tête de l'arbre (avec la méthode de votre choix)",
|
||||
"* Finalement, nous allons déplacer main vers la nouvelle tête de l'arbre (avec la méthode de votre choix)",
|
||||
"",
|
||||
"Il y a plusieurs façons d'atteindre ce but (cherry-pick semble très tentant), mais nous allons parler de cherry-pick plus tard, pour le moment concentrez-vous sur cette technique.",
|
||||
"",
|
||||
|
@ -144,7 +144,7 @@ exports.level = {
|
|||
"* Vamos a reordenar los commits para que el que queremos cambiar quede arriba de todo con `git rebase -i`",
|
||||
"* Vamos a hacer `git commit --amend` para aplicar la ligera modificación",
|
||||
"* Después vamos a reordenar los commits a como estaban con `git rebase -i`",
|
||||
"* Finalmente, vamos a mover master a esta parte actualizada de nuestro árbol de commits para terminar el nivel (usando el método que prefieras)",
|
||||
"* Finalmente, vamos a mover main a esta parte actualizada de nuestro árbol de commits para terminar el nivel (usando el método que prefieras)",
|
||||
"",
|
||||
"Hay varias maneras de lograr este objetivo en general (ya te veo haciéndole ojitos al cherry-pick), y veremos algunos más después, pero por ahora concentrémonos en esta técnica.",
|
||||
"",
|
||||
|
@ -179,7 +179,7 @@ exports.level = {
|
|||
"* Vamos a reordenar los commits para que el que queremos cambiar quede arriba de los demás con `git rebase -i`",
|
||||
"* Vamos a hacer `git commit --amend` para aplicar la ligera modificación",
|
||||
"* Después vamos a reordenar los commits a como estaban con `git rebase -i`",
|
||||
"* Finalmente, vamos a mover master a esta parte actualizada de nuestro árbol de commits para terminar el nivel (usando el método que prefieras)",
|
||||
"* Finalmente, vamos a mover main a esta parte actualizada de nuestro árbol de commits para terminar el nivel (usando el método que prefieras)",
|
||||
"",
|
||||
"Hay varias maneras de lograr este objetivo en general (ya te veo haciéndole ojitos al cherry-pick), y veremos algunos más después, pero por ahora concentrémonos en esta técnica.",
|
||||
"",
|
||||
|
@ -214,7 +214,7 @@ exports.level = {
|
|||
"* Reordenaremos os commits de forma que aquele que desejamos esteja no topo, com `git rebase -i`",
|
||||
"* Usaremos o comando `git commit --amend` para fazer uma pequena modificação",
|
||||
"* Vamos, então, reordenar os commits na mesma ordem que estavam anteriormente com `git rebase -i`",
|
||||
"* Finalmente, moveremos o master para essa parte atualizada da árvore para finalizar o nível (usando o método de sua escolha)",
|
||||
"* Finalmente, moveremos o main para essa parte atualizada da árvore para finalizar o nível (usando o método de sua escolha)",
|
||||
"",
|
||||
"Há muitas formas de alcançar o objetivo final (eu vejo o cherry-pick passando pela sua mente), e veremos mais delas depois, mas por enquanto foquemos nesta técnica.",
|
||||
"",
|
||||
|
@ -249,7 +249,7 @@ exports.level = {
|
|||
"* Reordenaremos os commits seleccionando aqueles que desexamos que estén no cambio, con `git rebase -i`",
|
||||
"* Empregaremos o comando `git commit --amend` para facer unha pequena modificación",
|
||||
"* Imos, entón, reordear os commits na mesma orde na que estaban anteriormente con `git rebase -i`",
|
||||
"* Finalmente, moveremos o master para esa parte atualizada da árbore e así finalizar o nivel (usando o método que máis che pete)",
|
||||
"* Finalmente, moveremos o main para esa parte atualizada da árbore e así finalizar o nivel (usando o método que máis che pete)",
|
||||
"",
|
||||
"Hai moitas formas de obter o obxectivo final (eu vexo o cherry-pick pasando pola túa cachola), e verémolo máis adiante, pero agora ímonos centrar nesta técnica.",
|
||||
"",
|
||||
|
@ -352,7 +352,7 @@ exports.level = {
|
|||
"* 先用 `git rebase -i` 将提交重新排序,然后把我们想要修改的提交记录挪到最前",
|
||||
"* 然后用 `git commit --amend` 来进行一些小修改",
|
||||
"* 接着再用 `git rebase -i` 来将他们调回原来的顺序",
|
||||
"* 最后我们把 master 移到修改的最前端(用你自己喜欢的方法),就大功告成啦!",
|
||||
"* 最后我们把 main 移到修改的最前端(用你自己喜欢的方法),就大功告成啦!",
|
||||
"",
|
||||
"当然完成这个任务的方法不止上面提到的一种(我知道你在看 cherry-pick 啦),之后我们会多点关注这些技巧啦,但现在暂时只专注上面这种方法。",
|
||||
"最后有必要说明一下目标状态中的那几个`'` —— 我们把这个提交移动了两次,每移动一次会产生一个 `'`;而 C2 上多出来的那个是我们在使用了 amend 参数提交时产生的,所以最终结果就是这样了。",
|
||||
|
@ -386,7 +386,7 @@ exports.level = {
|
|||
"* 先用 `git rebase -i` 將 commit 重新排序,然後把我們想要修改的 commit 移到最前面",
|
||||
"* 然後用 `git commit --amend` 來進行一些修改",
|
||||
"* 接著再用 `git rebase -i` 來將他們按照最開始的順序重新排好",
|
||||
"* 最後我們把 master 移到這個修改的最前端(用你自己喜歡的方法),就大功告成啦!",
|
||||
"* 最後我們把 main 移到這個修改的最前端(用你自己喜歡的方法),就大功告成啦!",
|
||||
"",
|
||||
"當然還有許多方法可以完成這個任務(我知道你在想 cherry-pick 啦),之後我們會多點關注這些技巧啦,但現在暫時只注意上面這種方法。",
|
||||
"",
|
||||
|
@ -452,7 +452,7 @@ exports.level = {
|
|||
"* Переставить коммит так, чтобы нужный находился наверху при помощи `git rebase -i`",
|
||||
"* Внести изменения при помощи `git commit --amend`",
|
||||
"* Переставить всё обратно при помощи `git rebase -i`",
|
||||
"* И наконец, переместить master на изменённую часть дерева, чтобы закончить уровень.",
|
||||
"* И наконец, переместить main на изменённую часть дерева, чтобы закончить уровень.",
|
||||
"",
|
||||
"Это задание можно выполнить несколькими способами (и, гляжу, ты посматриваешь на cherry-picking), но сейчас сосредоточься на вышеописанном методе.",
|
||||
"",
|
||||
|
@ -487,12 +487,12 @@ exports.level = {
|
|||
"* Ми відсортуємо коміти таким чином, щоб той, який ми хочемо змінити, був останнім за допомогою `git rebase -i`",
|
||||
"* Ми виконаємо `git commit --amend` щоб внести невелику правку до останнього коміту",
|
||||
"* Тоді ми відсортуємо коміти в попередньому порядку, за допомогою `git rebase -i`",
|
||||
"* І на останок, ми пересунемо master на змінену частину дерева щоб закінчити цей рівень(ти можеш вибрати метод)",
|
||||
"* І на останок, ми пересунемо main на змінену частину дерева щоб закінчити цей рівень(ти можеш вибрати метод)",
|
||||
"",
|
||||
"Насправді є кілька способів як виконати поставлену задачу (Я бачу, ти поглядаєш на cherry-pick), і ми розберемося з ними всіма трохи пізніше, але зараз скористаймося саме цим методом.",
|
||||
"Зверни увагу на фінальний стан в цьому рівні -- позаяк ми перемістили коміти двічі, кожен з них отримає по апострофу. Ще один апостроф додасться коли ми виконаємо commit --amend.",
|
||||
"",
|
||||
"Враховуючи сказане вище, я буду порівнювати дерево як за назвою коміта, так і за кількістю апострофів. Щойно дерево цілей та master співпадуть, ти пройдеш цей рівень."
|
||||
"Враховуючи сказане вище, я буду порівнювати дерево як за назвою коміта, так і за кількістю апострофів. Щойно дерево цілей та main співпадуть, ти пройдеш цей рівень."
|
||||
]
|
||||
}
|
||||
}
|
||||
|
@ -555,7 +555,7 @@ exports.level = {
|
|||
"* Preuredili bomo commite tako, da bo tisti, ki ga želimo spremeniti, na vrhu z `git rebase -i`",
|
||||
"* Izvedli bomo `git commit --amend`, da naredimo naš popravek",
|
||||
"* Nato bomo preuredili commite nazaj v začetno stanje z `git rebase -i`",
|
||||
"* Za konec bomo premaknili master na ta posodobljen del drevesa, da zaključimo stopnjo (z metodo po tvoji izbiri)",
|
||||
"* Za konec bomo premaknili main na ta posodobljen del drevesa, da zaključimo stopnjo (z metodo po tvoji izbiri)",
|
||||
"",
|
||||
"Obstaja več načinov, da dosežemo ta cilj (vidim te kako gledaš cherry-pick) s katerimi se bomo ukvarjali kasneje, ampak za zdaj se osredotočimo na to tehniko.",
|
||||
"In nenazadnje, bodi pozoren na ciljno stanje -- ker premaknemo commit dvakrat, oba dobita pripet opuščaj zgoraj. Še eden je dodan za ammendan commit, torej skupno tri.",
|
||||
|
|
|
@ -34,21 +34,21 @@ exports.level = {
|
|||
"sl_SI": "Žongliranje s Commiti #2"
|
||||
},
|
||||
"hint": {
|
||||
"en_US": "Don't forget to forward master to the updated changes!",
|
||||
"fr_FR": "N'oubliez pas d'appliquer les changements depuis la branche master",
|
||||
"es_AR": "¡No te olvides de avanzar master a los cambios actualizados!",
|
||||
"es_ES": "¡No te olvides de avanzar master a los cambios actualizados!",
|
||||
"pt_BR": "Não se esqueça de avançar a referência do master para as mudanças efetuadas!",
|
||||
"gl" : "¡Non te esquezas de avanzar master ós cambios actualizados!",
|
||||
"de_DE": "Vergiss nicht den master auf die aktuelle Version vorzuspulen",
|
||||
"en_US": "Don't forget to forward main to the updated changes!",
|
||||
"fr_FR": "N'oubliez pas d'appliquer les changements depuis la branche main",
|
||||
"es_AR": "¡No te olvides de avanzar main a los cambios actualizados!",
|
||||
"es_ES": "¡No te olvides de avanzar main a los cambios actualizados!",
|
||||
"pt_BR": "Não se esqueça de avançar a referência do main para as mudanças efetuadas!",
|
||||
"gl" : "¡Non te esquezas de avanzar main ós cambios actualizados!",
|
||||
"de_DE": "Vergiss nicht den main auf die aktuelle Version vorzuspulen",
|
||||
"ja": "masterのポインタを先に進めることを忘れずに!",
|
||||
"ko": "master를 변경 완료한 커밋으로 이동(forward)시키는 것을 잊지 마세요!",
|
||||
"zh_CN": "别忘记了将 master 快进到最新的更新上!",
|
||||
"zh_TW": "別忘記了將 master 推到最新的 commit 上面!",
|
||||
"ru_RU": "Не забудь переместить master на последние изменения.",
|
||||
"uk": "Не забудь перемістити master на останні зміни!",
|
||||
"vi": "Đừng quên đẩy nhánh master lên cập nhật mới nhất!",
|
||||
"sl_SI": "Ne pozabi prestaviti master naprej na posodobljene spremembe."
|
||||
"zh_CN": "别忘记了将 main 快进到最新的更新上!",
|
||||
"zh_TW": "別忘記了將 main 推到最新的 commit 上面!",
|
||||
"ru_RU": "Не забудь переместить main на последние изменения.",
|
||||
"uk": "Не забудь перемістити main на останні зміни!",
|
||||
"vi": "Đừng quên đẩy nhánh main lên cập nhật mới nhất!",
|
||||
"sl_SI": "Ne pozabi prestaviti main naprej na posodobljene spremembe."
|
||||
},
|
||||
"startDialog": {
|
||||
"en_US": {
|
||||
|
@ -79,7 +79,7 @@ exports.level = {
|
|||
"Nice! Let's move on."
|
||||
],
|
||||
"command": "git cherry-pick C2",
|
||||
"beforeCommand": "git checkout -b bugFix; git commit; git checkout master; git commit"
|
||||
"beforeCommand": "git checkout -b bugFix; git commit; git checkout main; git commit"
|
||||
}
|
||||
},
|
||||
{
|
||||
|
@ -122,7 +122,7 @@ exports.level = {
|
|||
"Bien ! continuons."
|
||||
],
|
||||
"command": "git cherry-pick C2",
|
||||
"beforeCommand": "git checkout -b bugFix; git commit; git checkout master; git commit"
|
||||
"beforeCommand": "git checkout -b bugFix; git commit; git checkout main; git commit"
|
||||
}
|
||||
},
|
||||
{
|
||||
|
@ -165,7 +165,7 @@ exports.level = {
|
|||
"¡Bien! Sigamos..."
|
||||
],
|
||||
"command": "git cherry-pick C2",
|
||||
"beforeCommand": "git checkout -b bugFix; git commit; git checkout master; git commit"
|
||||
"beforeCommand": "git checkout -b bugFix; git commit; git checkout main; git commit"
|
||||
}
|
||||
},
|
||||
{
|
||||
|
@ -208,7 +208,7 @@ exports.level = {
|
|||
"¡Bien! Sigamos..."
|
||||
],
|
||||
"command": "git cherry-pick C2",
|
||||
"beforeCommand": "git checkout -b bugFix; git commit; git checkout master; git commit"
|
||||
"beforeCommand": "git checkout -b bugFix; git commit; git checkout main; git commit"
|
||||
}
|
||||
},
|
||||
{
|
||||
|
@ -251,7 +251,7 @@ exports.level = {
|
|||
"Ótimo! Vamos em frente."
|
||||
],
|
||||
"command": "git cherry-pick C2",
|
||||
"beforeCommand": "git checkout -b bugFix; git commit; git checkout master; git commit"
|
||||
"beforeCommand": "git checkout -b bugFix; git commit; git checkout main; git commit"
|
||||
}
|
||||
},
|
||||
{
|
||||
|
@ -294,7 +294,7 @@ exports.level = {
|
|||
"¡A tope! Seguimos."
|
||||
],
|
||||
"command": "git cherry-pick C2",
|
||||
"beforeCommand": "git checkout -b bugFix; git commit; git checkout master; git commit"
|
||||
"beforeCommand": "git checkout -b bugFix; git commit; git checkout main; git commit"
|
||||
}
|
||||
},
|
||||
{
|
||||
|
@ -337,7 +337,7 @@ exports.level = {
|
|||
"Schick! Und weiter geht's."
|
||||
],
|
||||
"command": "git cherry-pick C2",
|
||||
"beforeCommand": "git checkout -b bugFix; git commit; git checkout master; git commit"
|
||||
"beforeCommand": "git checkout -b bugFix; git commit; git checkout main; git commit"
|
||||
}
|
||||
},
|
||||
{
|
||||
|
@ -380,7 +380,7 @@ exports.level = {
|
|||
"できました!次へ進みましょう"
|
||||
],
|
||||
"command": "git cherry-pick C2",
|
||||
"beforeCommand": "git checkout -b bugFix; git commit; git checkout master; git commit"
|
||||
"beforeCommand": "git checkout -b bugFix; git commit; git checkout main; git commit"
|
||||
}
|
||||
},
|
||||
{
|
||||
|
@ -421,7 +421,7 @@ exports.level = {
|
|||
"afterMarkdowns": [
|
||||
"看到了吧?我们继续"
|
||||
],
|
||||
"beforeCommand": "git checkout -b bugFix; git commit; git checkout master; git commit"
|
||||
"beforeCommand": "git checkout -b bugFix; git commit; git checkout main; git commit"
|
||||
}
|
||||
},
|
||||
{
|
||||
|
@ -464,7 +464,7 @@ exports.level = {
|
|||
"afterMarkdowns": [
|
||||
"太棒了,我們繼續吧!"
|
||||
],
|
||||
"beforeCommand": "git checkout -b bugFix; git commit; git checkout master; git commit"
|
||||
"beforeCommand": "git checkout -b bugFix; git commit; git checkout main; git commit"
|
||||
}
|
||||
},
|
||||
{
|
||||
|
@ -505,7 +505,7 @@ exports.level = {
|
|||
"좋아요! 계속할게요"
|
||||
],
|
||||
"command": "git cherry-pick C2",
|
||||
"beforeCommand": "git checkout -b bugFix; git commit; git checkout master; git commit"
|
||||
"beforeCommand": "git checkout -b bugFix; git commit; git checkout main; git commit"
|
||||
}
|
||||
},
|
||||
{
|
||||
|
@ -546,7 +546,7 @@ exports.level = {
|
|||
"Ок! Едем дальше!"
|
||||
],
|
||||
"command": "git cherry-pick C2",
|
||||
"beforeCommand": "git checkout -b bugFix; git commit; git checkout master; git commit"
|
||||
"beforeCommand": "git checkout -b bugFix; git commit; git checkout main; git commit"
|
||||
}
|
||||
},
|
||||
{
|
||||
|
@ -589,7 +589,7 @@ exports.level = {
|
|||
"Добре! Продовжуємо"
|
||||
],
|
||||
"command": "git cherry-pick C2",
|
||||
"beforeCommand": "git checkout -b bugFix; git commit; git checkout master; git commit"
|
||||
"beforeCommand": "git checkout -b bugFix; git commit; git checkout main; git commit"
|
||||
}
|
||||
},
|
||||
{
|
||||
|
@ -632,7 +632,7 @@ exports.level = {
|
|||
"Hay! Tiếp tục nào"
|
||||
],
|
||||
"command": "git cherry-pick C2",
|
||||
"beforeCommand": "git checkout -b bugFix; git commit; git checkout master; git commit"
|
||||
"beforeCommand": "git checkout -b bugFix; git commit; git checkout main; git commit"
|
||||
}
|
||||
},
|
||||
{
|
||||
|
@ -675,7 +675,7 @@ exports.level = {
|
|||
"Odlično! Nadaljujmo ..."
|
||||
],
|
||||
"command": "git cherry-pick C2",
|
||||
"beforeCommand": "git checkout -b bugFix; git commit; git checkout master; git commit"
|
||||
"beforeCommand": "git checkout -b bugFix; git commit; git checkout main; git commit"
|
||||
}
|
||||
},
|
||||
{
|
||||
|
|
|
@ -84,14 +84,14 @@ exports.level = {
|
|||
"That's it! We wanted commits `C2` and `C4` and git plopped them down right below us. Simple as that!"
|
||||
],
|
||||
"command": "git cherry-pick C2 C4",
|
||||
"beforeCommand": "git checkout -b side; git commit; git commit; git commit; git checkout master; git commit;"
|
||||
"beforeCommand": "git checkout -b side; git commit; git commit; git commit; git checkout main; git commit;"
|
||||
}
|
||||
},
|
||||
{
|
||||
"type": "ModalAlert",
|
||||
"options": {
|
||||
"markdowns": [
|
||||
"To complete this level, simply copy some work from the three branches shown into master. You can see which commits we want by looking at the goal visualization.",
|
||||
"To complete this level, simply copy some work from the three branches shown into main. You can see which commits we want by looking at the goal visualization.",
|
||||
""
|
||||
]
|
||||
}
|
||||
|
@ -141,14 +141,14 @@ exports.level = {
|
|||
"Voilà ! Nous voulions les commits `C2` et `C4` et git les a fait apparaître juste sous nos jambes. Aussi simple que ça !"
|
||||
],
|
||||
"command": "git cherry-pick C2 C4",
|
||||
"beforeCommand": "git checkout -b side; git commit; git commit; git commit; git checkout master; git commit;"
|
||||
"beforeCommand": "git checkout -b side; git commit; git commit; git commit; git checkout main; git commit;"
|
||||
}
|
||||
},
|
||||
{
|
||||
"type": "ModalAlert",
|
||||
"options": {
|
||||
"markdowns": [
|
||||
"Pour finir ce niveau, copiez simplement le travail désigné dans la branche master. Vous pouvez voir les commits que nous souhaitons avoir en regardant dans la fenêtre d'objectif.",
|
||||
"Pour finir ce niveau, copiez simplement le travail désigné dans la branche main. Vous pouvez voir les commits que nous souhaitons avoir en regardant dans la fenêtre d'objectif.",
|
||||
""
|
||||
]
|
||||
}
|
||||
|
@ -198,14 +198,14 @@ exports.level = {
|
|||
"¡Eso es todo! Queríamos los commits `C2` y `C4` y git los aplicó justo donde estábamos. ¡Tan simple como eso!"
|
||||
],
|
||||
"command": "git cherry-pick C2 C4",
|
||||
"beforeCommand": "git checkout -b side; git commit; git commit; git commit; git checkout master; git commit;"
|
||||
"beforeCommand": "git checkout -b side; git commit; git commit; git commit; git checkout main; git commit;"
|
||||
}
|
||||
},
|
||||
{
|
||||
"type": "ModalAlert",
|
||||
"options": {
|
||||
"markdowns": [
|
||||
"Para completar este nivel, simplemente copiá algo de trabajo desde otras tres ramas a master. Podés ver qué commits queremos en la visualización del objetivo.",
|
||||
"Para completar este nivel, simplemente copiá algo de trabajo desde otras tres ramas a main. Podés ver qué commits queremos en la visualización del objetivo.",
|
||||
""
|
||||
]
|
||||
}
|
||||
|
@ -255,14 +255,14 @@ exports.level = {
|
|||
"¡Eso es todo! Queríamos los commits `C2` y `C4` y git los aplicó justo donde estábamos. ¡Tan simple como eso!"
|
||||
],
|
||||
"command": "git cherry-pick C2 C4",
|
||||
"beforeCommand": "git checkout -b side; git commit; git commit; git commit; git checkout master; git commit;"
|
||||
"beforeCommand": "git checkout -b side; git commit; git commit; git commit; git checkout main; git commit;"
|
||||
}
|
||||
},
|
||||
{
|
||||
"type": "ModalAlert",
|
||||
"options": {
|
||||
"markdowns": [
|
||||
"Para completar este nivel, simplemente copia algo de trabajo desde otras tres ramas a master. Puedes ver qué commits queremos en la visualización del objetivo.",
|
||||
"Para completar este nivel, simplemente copia algo de trabajo desde otras tres ramas a main. Puedes ver qué commits queremos en la visualización del objetivo.",
|
||||
""
|
||||
]
|
||||
}
|
||||
|
@ -312,14 +312,14 @@ exports.level = {
|
|||
"É isso! Queríamos os commits `C2` e `C4` e o git os inseriu logo abaixo de nós. Simples assim!"
|
||||
],
|
||||
"command": "git cherry-pick C2 C4",
|
||||
"beforeCommand": "git checkout -b side; git commit; git commit; git commit; git checkout master; git commit;"
|
||||
"beforeCommand": "git checkout -b side; git commit; git commit; git commit; git checkout main; git commit;"
|
||||
}
|
||||
},
|
||||
{
|
||||
"type": "ModalAlert",
|
||||
"options": {
|
||||
"markdowns": [
|
||||
"Para completar este nível, simplesmente copie algum trabalho dos outros três ramos para o master. Você pode ver quais commits queremos copiar na visualização do objetivo.",
|
||||
"Para completar este nível, simplesmente copie algum trabalho dos outros três ramos para o main. Você pode ver quais commits queremos copiar na visualização do objetivo.",
|
||||
""
|
||||
]
|
||||
}
|
||||
|
@ -369,14 +369,14 @@ exports.level = {
|
|||
"¡Eso é! Queríamos os commits `C2` e `C4` e git insertounos por baixo de nós. ¡Moi sinxelo!"
|
||||
],
|
||||
"command": "git cherry-pick C2 C4",
|
||||
"beforeCommand": "git checkout -b side; git commit; git commit; git commit; git checkout master; git commit;"
|
||||
"beforeCommand": "git checkout -b side; git commit; git commit; git commit; git checkout main; git commit;"
|
||||
}
|
||||
},
|
||||
{
|
||||
"type": "ModalAlert",
|
||||
"options": {
|
||||
"markdowns": [
|
||||
"Para completar este nivel, copia algo de traballo das outras ramas na master. Podes ver qué commits queremos copiar na visualización do obxectivo.",
|
||||
"Para completar este nivel, copia algo de traballo das outras ramas na main. Podes ver qué commits queremos copiar na visualización do obxectivo.",
|
||||
""
|
||||
]
|
||||
}
|
||||
|
@ -426,7 +426,7 @@ exports.level = {
|
|||
"就是那樣!我們複製了 `C2` 以及 `C4` 並且把它們放到我們的後面,很簡單吧!"
|
||||
],
|
||||
"command": "git cherry-pick C2 C4",
|
||||
"beforeCommand": "git checkout -b side; git commit; git commit; git commit; git checkout master; git commit;"
|
||||
"beforeCommand": "git checkout -b side; git commit; git commit; git commit; git checkout main; git commit;"
|
||||
}
|
||||
},
|
||||
{
|
||||
|
@ -482,14 +482,14 @@ exports.level = {
|
|||
"这就是了!我们只需要提交记录 `C2` 和 `C4`,所以 Git 就将被它们抓过来放到当前分支下了。 就是这么简单!"
|
||||
],
|
||||
"command": "git cherry-pick C2 C4",
|
||||
"beforeCommand": "git checkout -b side; git commit; git commit; git commit; git checkout master; git commit;"
|
||||
"beforeCommand": "git checkout -b side; git commit; git commit; git commit; git checkout main; git commit;"
|
||||
}
|
||||
},
|
||||
{
|
||||
"type": "ModalAlert",
|
||||
"options": {
|
||||
"markdowns": [
|
||||
"要通过此关, 只需要简单的将三个分支中的提交记录复制到 master 上就可以了。目标窗口展示了我们想要哪些提交记录,如果你不小心关掉了的话,通过 `show goal` 命令可以打开,左上角也有“显示目标按钮”",
|
||||
"要通过此关, 只需要简单的将三个分支中的提交记录复制到 main 上就可以了。目标窗口展示了我们想要哪些提交记录,如果你不小心关掉了的话,通过 `show goal` 命令可以打开,左上角也有“显示目标按钮”",
|
||||
""
|
||||
]
|
||||
}
|
||||
|
@ -539,7 +539,7 @@ exports.level = {
|
|||
"Das war's! Wir wollten die Commits `C2` und `C4` und Git hat die einfach unter unseren aktuellen Checkout kopiert. So einfach ist das."
|
||||
],
|
||||
"command": "git cherry-pick C2 C4",
|
||||
"beforeCommand": "git checkout -b side; git commit; git commit; git commit; git checkout master; git commit;"
|
||||
"beforeCommand": "git checkout -b side; git commit; git commit; git commit; git checkout main; git commit;"
|
||||
}
|
||||
},
|
||||
{
|
||||
|
@ -596,7 +596,7 @@ exports.level = {
|
|||
"これだけで終わりです!コミット`C2` と `C4`を取得したかったわけですが、gitが現在の位置の直下に落としてくれました。単純ですね!"
|
||||
],
|
||||
"command": "git cherry-pick C2 C4",
|
||||
"beforeCommand": "git checkout -b side; git commit; git commit; git commit; git checkout master; git commit;"
|
||||
"beforeCommand": "git checkout -b side; git commit; git commit; git commit; git checkout main; git commit;"
|
||||
}
|
||||
},
|
||||
{
|
||||
|
@ -653,7 +653,7 @@ exports.level = {
|
|||
"Вуаля! Мы хотели перенести коммиты `C2` и `C4`, Git дал нам их там, где они нужны. Всё просто!"
|
||||
],
|
||||
"command": "git cherry-pick C2 C4",
|
||||
"beforeCommand": "git checkout -b side; git commit; git commit; git commit; git checkout master; git commit;"
|
||||
"beforeCommand": "git checkout -b side; git commit; git commit; git commit; git checkout main; git commit;"
|
||||
}
|
||||
},
|
||||
{
|
||||
|
@ -710,7 +710,7 @@ exports.level = {
|
|||
"됬습니다! 우리는 `C2`와 `C4` 커밋을 원했고 git이 우리가 원하는 곳 바로 밑에 톡 떨어뜨려 줬습니다. 아주 간단하죠!"
|
||||
],
|
||||
"command": "git cherry-pick C2 C4",
|
||||
"beforeCommand": "git checkout -b side; git commit; git commit; git commit; git checkout master; git commit;"
|
||||
"beforeCommand": "git checkout -b side; git commit; git commit; git commit; git checkout main; git commit;"
|
||||
}
|
||||
},
|
||||
{
|
||||
|
@ -767,14 +767,14 @@ exports.level = {
|
|||
"Овва! Ми хотіли коміти `C2` та `C4` і git додав їх до поточного розташування. Просто й доступно!"
|
||||
],
|
||||
"command": "git cherry-pick C2 C4",
|
||||
"beforeCommand": "git checkout -b side; git commit; git commit; git commit; git checkout master; git commit;"
|
||||
"beforeCommand": "git checkout -b side; git commit; git commit; git commit; git checkout main; git commit;"
|
||||
}
|
||||
},
|
||||
{
|
||||
"type": "ModalAlert",
|
||||
"options": {
|
||||
"markdowns": [
|
||||
"Щоб пройти це рівень, просто скопіюй якісь зміни з трьох гілок показаних на діаграмі в master. В візуалізації видно які коміти потрібно скопіювати.",
|
||||
"Щоб пройти це рівень, просто скопіюй якісь зміни з трьох гілок показаних на діаграмі в main. В візуалізації видно які коміти потрібно скопіювати.",
|
||||
""
|
||||
]
|
||||
}
|
||||
|
@ -824,14 +824,14 @@ exports.level = {
|
|||
"Thế thôi! Chúng ta chỉ cần các commit `C2` và` C4`, vì vậy Git sẽ lấy chúng và đặt chúng dưới nhánh hiện tại. Thật đơn giản!"
|
||||
],
|
||||
"command": "git cherry-pick C2 C4",
|
||||
"beforeCommand": "git checkout -b side; git commit; git commit; git commit; git checkout master; git commit;"
|
||||
"beforeCommand": "git checkout -b side; git commit; git commit; git commit; git checkout main; git commit;"
|
||||
}
|
||||
},
|
||||
{
|
||||
"type": "ModalAlert",
|
||||
"options": {
|
||||
"markdowns": [
|
||||
"Để hoàn thành cấp độ này, hãy copy thành quả công việc từ 3 nhánh khác vào master. Bạn có thể nhìn vào mô tả mục tiêu để biết chúng ta cần những commit nào.",
|
||||
"Để hoàn thành cấp độ này, hãy copy thành quả công việc từ 3 nhánh khác vào main. Bạn có thể nhìn vào mô tả mục tiêu để biết chúng ta cần những commit nào.",
|
||||
""
|
||||
]
|
||||
}
|
||||
|
@ -881,14 +881,14 @@ exports.level = {
|
|||
"To je to! Želeli smo commita `C2` in `C4` in git ju je prilimal točno pod nas. Preprosto!"
|
||||
],
|
||||
"command": "git cherry-pick C2 C4",
|
||||
"beforeCommand": "git checkout -b side; git commit; git commit; git commit; git checkout master; git commit;"
|
||||
"beforeCommand": "git checkout -b side; git commit; git commit; git commit; git checkout main; git commit;"
|
||||
}
|
||||
},
|
||||
{
|
||||
"type": "ModalAlert",
|
||||
"options": {
|
||||
"markdowns": [
|
||||
"Za končanje te stopnje enostavno skopiraj nekaj dela iz predstavljenih treh branchev v master. V priloženi vizualizaciji lahko vidiš katere commite.",
|
||||
"Za končanje te stopnje enostavno skopiraj nekaj dela iz predstavljenih treh branchev v main. V priloženi vizualizaciji lahko vidiš katere commite.",
|
||||
""
|
||||
]
|
||||
}
|
||||
|
|
|
@ -79,7 +79,7 @@ exports.level = {
|
|||
"afterMarkdowns": [
|
||||
"See! HEAD was hiding underneath our `main` branch all along."
|
||||
],
|
||||
"command": "git checkout C1; git checkout master; git commit; git checkout C2",
|
||||
"command": "git checkout C1; git checkout main; git commit; git checkout C2",
|
||||
"beforeCommand": ""
|
||||
}
|
||||
},
|
||||
|
@ -91,7 +91,7 @@ exports.level = {
|
|||
"",
|
||||
"Detaching HEAD just means attaching it to a commit instead of a branch. This is what it looks like beforehand:",
|
||||
"",
|
||||
"HEAD -> master -> C1",
|
||||
"HEAD -> main -> C1",
|
||||
""
|
||||
],
|
||||
"afterMarkdowns": [
|
||||
|
@ -157,7 +157,7 @@ exports.level = {
|
|||
"afterMarkdowns": [
|
||||
"¡Ves! HEAD estuvo oculta bajo nuestra rama `main` todo este tiempo."
|
||||
],
|
||||
"command": "git checkout C1; git checkout master; git commit; git checkout C2",
|
||||
"command": "git checkout C1; git checkout main; git commit; git checkout C2",
|
||||
"beforeCommand": ""
|
||||
}
|
||||
},
|
||||
|
@ -169,7 +169,7 @@ exports.level = {
|
|||
"",
|
||||
"Detachear (_des-adjuntar_) HEAD simplemente significa adjuntarla a un commit en lugar de a un branch. Así es como se ve de antemano:",
|
||||
"",
|
||||
"HEAD -> master -> C1",
|
||||
"HEAD -> main -> C1",
|
||||
""
|
||||
],
|
||||
"afterMarkdowns": [
|
||||
|
@ -235,7 +235,7 @@ exports.level = {
|
|||
"afterMarkdowns": [
|
||||
"¡Ves! HEAD estuvo oculta bajo nuestra rama `main` todo este tiempo."
|
||||
],
|
||||
"command": "git checkout C1; git checkout master; git commit; git checkout C2",
|
||||
"command": "git checkout C1; git checkout main; git commit; git checkout C2",
|
||||
"beforeCommand": ""
|
||||
}
|
||||
},
|
||||
|
@ -247,7 +247,7 @@ exports.level = {
|
|||
"",
|
||||
"Detachear (_des-adjuntar_) HEAD simplemente significa adjuntarla a un commit en lugar de a un branch. Así es como se ve de antemano:",
|
||||
"",
|
||||
"HEAD -> master -> C1",
|
||||
"HEAD -> main -> C1",
|
||||
""
|
||||
],
|
||||
"afterMarkdowns": [
|
||||
|
@ -313,7 +313,7 @@ exports.level = {
|
|||
"afterMarkdowns": [
|
||||
"Veja! O HEAD estava se escondendo ao lado do nosso `main` esse tempo todo."
|
||||
],
|
||||
"command": "git checkout C1; git checkout master; git commit; git checkout C2",
|
||||
"command": "git checkout C1; git checkout main; git commit; git checkout C2",
|
||||
"beforeCommand": ""
|
||||
}
|
||||
},
|
||||
|
@ -325,7 +325,7 @@ exports.level = {
|
|||
"",
|
||||
"Soltar o HEAD significa anexá-lo a um commit em vez de anexá-lo a um ramo. Antes do estado solto (\"detached\"), é assim como se parece:",
|
||||
"",
|
||||
"HEAD -> master -> C1",
|
||||
"HEAD -> main -> C1",
|
||||
""
|
||||
],
|
||||
"afterMarkdowns": [
|
||||
|
@ -391,7 +391,7 @@ exports.level = {
|
|||
"afterMarkdowns": [
|
||||
"Ves! O HEAD estivo ó lado do noso `main` todo este tempo."
|
||||
],
|
||||
"command": "git checkout C1; git checkout master; git commit; git checkout C2",
|
||||
"command": "git checkout C1; git checkout main; git commit; git checkout C2",
|
||||
"beforeCommand": ""
|
||||
}
|
||||
},
|
||||
|
@ -403,7 +403,7 @@ exports.level = {
|
|||
"",
|
||||
"Soltar o HEAD significa apuntar a un commit en vez de apuntar a unha rama. Antes do estado solo (\"detached\"), é así como aparece:",
|
||||
"",
|
||||
"HEAD -> master -> C1",
|
||||
"HEAD -> main -> C1",
|
||||
""
|
||||
],
|
||||
"afterMarkdowns": [
|
||||
|
@ -469,7 +469,7 @@ exports.level = {
|
|||
"afterMarkdowns": [
|
||||
"Vous voyez ! HEAD était caché en dessous de la branche `main` tout le long."
|
||||
],
|
||||
"command": "git checkout C1; git checkout master; git commit; git checkout C2",
|
||||
"command": "git checkout C1; git checkout main; git commit; git checkout C2",
|
||||
"beforeCommand": ""
|
||||
}
|
||||
},
|
||||
|
@ -481,7 +481,7 @@ exports.level = {
|
|||
"",
|
||||
"Détacher HEAD signifie simplement que l'on attache HEAD à un commit au lieu d'une branche. Voilà à quoi cela ressemble actuellement :",
|
||||
"",
|
||||
"HEAD -> master -> C1",
|
||||
"HEAD -> main -> C1",
|
||||
""
|
||||
],
|
||||
"afterMarkdowns": [
|
||||
|
@ -547,7 +547,7 @@ exports.level = {
|
|||
"afterMarkdowns": [
|
||||
"Siehst du? `HEAD` war die ganze Zeit unter `main` versteckt."
|
||||
],
|
||||
"command": "git checkout C1; git checkout master; git commit; git checkout C2",
|
||||
"command": "git checkout C1; git checkout main; git commit; git checkout C2",
|
||||
"beforeCommand": ""
|
||||
}
|
||||
},
|
||||
|
@ -624,7 +624,7 @@ exports.level = {
|
|||
"(译者注:实际这些命令并不是真的在查看 HEAD 指向,看下一屏就了解了。如果想看 HEAD 指向,可以通过 `cat .git/HEAD` 查看,",
|
||||
"如果 HEAD 指向的是一个引用,还可以用 `git symbolic-ref HEAD` 查看它的指向。但是该程序不支持这两个命令)"
|
||||
],
|
||||
"command": "git checkout C1; git checkout master; git commit; git checkout C2",
|
||||
"command": "git checkout C1; git checkout main; git commit; git checkout C2",
|
||||
"beforeCommand": ""
|
||||
}
|
||||
},
|
||||
|
@ -636,9 +636,9 @@ exports.level = {
|
|||
"",
|
||||
"分离的 HEAD 就是让其指向了某个具体的提交记录而不是分支名。在命令执行之前的状态如下所示: ",
|
||||
"",
|
||||
"HEAD -> master -> C1",
|
||||
"HEAD -> main -> C1",
|
||||
"",
|
||||
"HEAD 指向 master, master 指向 C1"
|
||||
"HEAD 指向 main, main 指向 C1"
|
||||
],
|
||||
"afterMarkdowns": [
|
||||
"现在变成了",
|
||||
|
@ -699,7 +699,7 @@ exports.level = {
|
|||
"afterMarkdowns": [
|
||||
"看吧!HEAD 一直藏在 `main` 分支的後面。"
|
||||
],
|
||||
"command": "git checkout C1; git checkout master; git commit; git checkout C2",
|
||||
"command": "git checkout C1; git checkout main; git commit; git checkout C2",
|
||||
"beforeCommand": ""
|
||||
}
|
||||
},
|
||||
|
@ -711,7 +711,7 @@ exports.level = {
|
|||
"",
|
||||
"分離 HEAD 就是讓其指向一個 commit 而不是 branch 的名稱。這是指令執行之前的樣子:",
|
||||
"",
|
||||
"HEAD -> master -> C1",
|
||||
"HEAD -> main -> C1",
|
||||
""
|
||||
],
|
||||
"afterMarkdowns": [
|
||||
|
@ -777,7 +777,7 @@ exports.level = {
|
|||
"afterMarkdowns": [
|
||||
"ほら、HEADが元から`main`ブランチの下に隠れていたんですね!"
|
||||
],
|
||||
"command": "git checkout C1; git checkout master; git commit; git checkout C2",
|
||||
"command": "git checkout C1; git checkout main; git commit; git checkout C2",
|
||||
"beforeCommand": ""
|
||||
}
|
||||
},
|
||||
|
@ -789,7 +789,7 @@ exports.level = {
|
|||
"",
|
||||
"HEADの分離(detached HEAD)とは単に、ブランチではなく特定のコミットにHEADを紐づけることです。実行前の状態は次のようです:",
|
||||
"",
|
||||
"HEAD -> master -> C1",
|
||||
"HEAD -> main -> C1",
|
||||
""
|
||||
],
|
||||
"afterMarkdowns": [
|
||||
|
@ -855,7 +855,7 @@ exports.level = {
|
|||
"afterMarkdowns": [
|
||||
"Вот! HEAD всё это время скрывался за веткой `main`."
|
||||
],
|
||||
"command": "git checkout C1; git checkout master; git commit; git checkout C2",
|
||||
"command": "git checkout C1; git checkout main; git commit; git checkout C2",
|
||||
"beforeCommand": ""
|
||||
}
|
||||
},
|
||||
|
@ -867,7 +867,7 @@ exports.level = {
|
|||
"",
|
||||
"Отделение (detaching) HEAD означает лишь присвоение его не ветке, а конкретному коммиту. Посмотрим, что было до отделения:",
|
||||
"",
|
||||
"HEAD -> master -> C1",
|
||||
"HEAD -> main -> C1",
|
||||
""
|
||||
],
|
||||
"afterMarkdowns": [
|
||||
|
@ -933,7 +933,7 @@ exports.level = {
|
|||
"afterMarkdowns": [
|
||||
"보세요! HEAD가 `main`브랜치 아래에 숨어 있던 거군요."
|
||||
],
|
||||
"command": "git checkout C1; git checkout master; git commit; git checkout C2",
|
||||
"command": "git checkout C1; git checkout main; git commit; git checkout C2",
|
||||
"beforeCommand": ""
|
||||
}
|
||||
},
|
||||
|
@ -945,7 +945,7 @@ exports.level = {
|
|||
"",
|
||||
"HEAD를 분리한다는 것은 HEAD를 브랜치 대신 커밋에 붙이는 것을 의미합니다. 명령을 사용하기 전의 모습은 다음과 같습니다:",
|
||||
"",
|
||||
"HEAD -> master -> C1",
|
||||
"HEAD -> main -> C1",
|
||||
""
|
||||
],
|
||||
"afterMarkdowns": [
|
||||
|
@ -1011,7 +1011,7 @@ exports.level = {
|
|||
"afterMarkdowns": [
|
||||
"Ти диви! HEAD весь цей час ховався за гілкою `main`."
|
||||
],
|
||||
"command": "git checkout C1; git checkout master; git commit; git checkout C2",
|
||||
"command": "git checkout C1; git checkout main; git commit; git checkout C2",
|
||||
"beforeCommand": ""
|
||||
}
|
||||
},
|
||||
|
@ -1023,7 +1023,7 @@ exports.level = {
|
|||
"",
|
||||
"Detached HEAD (відокремлена голова) просто означає що HEAD посилається на коміт, а не на якусь гілку. Ось як це виглядає спочатку:",
|
||||
"",
|
||||
"HEAD -> master -> C1",
|
||||
"HEAD -> main -> C1",
|
||||
""
|
||||
],
|
||||
"afterMarkdowns": [
|
||||
|
@ -1089,7 +1089,7 @@ exports.level = {
|
|||
"afterMarkdowns": [
|
||||
"Thấy chứ? HEAD đã ẩn dưới nhánh `main` suốt."
|
||||
],
|
||||
"command": "git checkout C1; git checkout master; git commit; git checkout C2",
|
||||
"command": "git checkout C1; git checkout main; git commit; git checkout C2",
|
||||
"beforeCommand": ""
|
||||
}
|
||||
},
|
||||
|
@ -1101,7 +1101,7 @@ exports.level = {
|
|||
"",
|
||||
"Tháo HEAD đơng giản nghĩa là dán nó vào một commit thay vì một nhánh. Lúc trước thì nó trông như thế này:",
|
||||
"",
|
||||
"HEAD -> master -> C1",
|
||||
"HEAD -> main -> C1",
|
||||
""
|
||||
],
|
||||
"afterMarkdowns": [
|
||||
|
@ -1167,7 +1167,7 @@ exports.level = {
|
|||
"afterMarkdowns": [
|
||||
"Evo! HEAD se je vseskozi skrival pod našim `main` branchom."
|
||||
],
|
||||
"command": "git checkout C1; git checkout master; git commit; git checkout C2",
|
||||
"command": "git checkout C1; git checkout main; git commit; git checkout C2",
|
||||
"beforeCommand": ""
|
||||
}
|
||||
},
|
||||
|
@ -1179,7 +1179,7 @@ exports.level = {
|
|||
"",
|
||||
"Ločevanje HEAD-a pomeni samo, da ga namestno na branch sedaj pripnemo na commit. Tako je izgledalo prej:",
|
||||
"",
|
||||
"HEAD -> master -> C1",
|
||||
"HEAD -> main -> C1",
|
||||
""
|
||||
],
|
||||
"afterMarkdowns": [
|
||||
|
|
|
@ -74,16 +74,16 @@ exports.level = {
|
|||
"beforeMarkdowns": [
|
||||
"Let's look at the Caret (^) operator first. Each time you append that to a ref name, you are telling Git to find the parent of the specified commit.",
|
||||
"",
|
||||
"So saying `master^` is equivalent to \"the first parent of `main`\".",
|
||||
"So saying `main^` is equivalent to \"the first parent of `main`\".",
|
||||
"",
|
||||
"`master^^` is the grandparent (second-generation ancestor) of `main`",
|
||||
"`main^^` is the grandparent (second-generation ancestor) of `main`",
|
||||
"",
|
||||
"Let's check out the commit above master here."
|
||||
"Let's check out the commit above main here."
|
||||
],
|
||||
"afterMarkdowns": [
|
||||
"Boom! Done. Way easier than typing the commit hash."
|
||||
],
|
||||
"command": "git checkout master^",
|
||||
"command": "git checkout main^",
|
||||
"beforeCommand": "git commit"
|
||||
}
|
||||
},
|
||||
|
@ -149,16 +149,16 @@ exports.level = {
|
|||
"beforeMarkdowns": [
|
||||
"Regardons l'opérateur circonflexe (^) d'abord. Chaque fois que vous le faites suivre un nom de référence, vous êtes en train de demander à Git de trouver le parent du commit spécifié.",
|
||||
"",
|
||||
"Ainsi, `master^` est équivalent à \"le premier parent de `main`\".",
|
||||
"Ainsi, `main^` est équivalent à \"le premier parent de `main`\".",
|
||||
"",
|
||||
"`master^^` est le grand-parent (ancêtre de seconde génération) de `main`",
|
||||
"`main^^` est le grand-parent (ancêtre de seconde génération) de `main`",
|
||||
"",
|
||||
"Faisons un checkout du commit avant master."
|
||||
"Faisons un checkout du commit avant main."
|
||||
],
|
||||
"afterMarkdowns": [
|
||||
"Boum ! Fini. Bien plus facile qu'écrire l'identifiant du commit."
|
||||
],
|
||||
"command": "git checkout master^",
|
||||
"command": "git checkout main^",
|
||||
"beforeCommand": "git commit"
|
||||
}
|
||||
},
|
||||
|
@ -224,16 +224,16 @@ exports.level = {
|
|||
"beforeMarkdowns": [
|
||||
"Schauen wir uns zuerst den Dach-Operator (`^`) an. Jedes mal wenn du ihn hinter einen Referenz-Namen setzt, sagst du Git damit, dass es zum Vorgänger des angegebenen Commits gehen soll.",
|
||||
"",
|
||||
"Das heißt `master^` ist gleichbedeutend mit \"direkter Vorgänger des Commits, auf den `main` zeigt\".",
|
||||
"Das heißt `main^` ist gleichbedeutend mit \"direkter Vorgänger des Commits, auf den `main` zeigt\".",
|
||||
"",
|
||||
"`master^^` ist also der Vorgänger des Vorgängers von `main`.",
|
||||
"`main^^` ist also der Vorgänger des Vorgängers von `main`.",
|
||||
"",
|
||||
"Wir checken jetzt mal den Commit vor `main` aus:"
|
||||
],
|
||||
"afterMarkdowns": [
|
||||
"Bämm! Fertig. Einfacher, als den Commit-Hash zu tippen (oder zu kopieren)."
|
||||
],
|
||||
"command": "git checkout master^",
|
||||
"command": "git checkout main^",
|
||||
"beforeCommand": "git commit"
|
||||
}
|
||||
},
|
||||
|
@ -299,16 +299,16 @@ exports.level = {
|
|||
"beforeMarkdowns": [
|
||||
"Veamos el operador ^ primero. Cada vez que le agregás eso al nombre de una referencia, le estás diciendo a git que use el padre del commit especificado.",
|
||||
"",
|
||||
"Entonces, decir `master^` es equivalente a \"el primer padre de `main`\".",
|
||||
"Entonces, decir `main^` es equivalente a \"el primer padre de `main`\".",
|
||||
"",
|
||||
"`master^^` es el _abuelo_ (segunda generación de ancestros) de `main`",
|
||||
"`main^^` es el _abuelo_ (segunda generación de ancestros) de `main`",
|
||||
"",
|
||||
"Veamos el commit que está antes de master acá."
|
||||
"Veamos el commit que está antes de main acá."
|
||||
],
|
||||
"afterMarkdowns": [
|
||||
"¡Boom! Ahí está. Mucho más simple que tipear el hash de ese commit."
|
||||
],
|
||||
"command": "git checkout master^",
|
||||
"command": "git checkout main^",
|
||||
"beforeCommand": "git commit"
|
||||
}
|
||||
},
|
||||
|
@ -374,16 +374,16 @@ exports.level = {
|
|||
"beforeMarkdowns": [
|
||||
"Veamos el operador ^ primero. Cada vez que le agregas eso al nombre de una referencia, le estás diciendo a git que use el padre del commit especificado.",
|
||||
"",
|
||||
"Entonces, decir `master^` es equivalente a \"el primer padre de `main`\".",
|
||||
"Entonces, decir `main^` es equivalente a \"el primer padre de `main`\".",
|
||||
"",
|
||||
"`master^^` es el _abuelo_ (segunda generación de ancestros) de `main`",
|
||||
"`main^^` es el _abuelo_ (segunda generación de ancestros) de `main`",
|
||||
"",
|
||||
"Veamos el commit que está antes de master aquí."
|
||||
"Veamos el commit que está antes de main aquí."
|
||||
],
|
||||
"afterMarkdowns": [
|
||||
"¡Zas! Ahí está. Mucho más simple que escribir el hash de ese commit."
|
||||
],
|
||||
"command": "git checkout master^",
|
||||
"command": "git checkout main^",
|
||||
"beforeCommand": "git commit"
|
||||
}
|
||||
},
|
||||
|
@ -449,16 +449,16 @@ exports.level = {
|
|||
"beforeMarkdowns": [
|
||||
"Vamos dar uma olhada no operador circunflexo (^) primeiro. Cada vez que você adicioná-lo a um nome de referência, você está dizendo ao Git para encontrar o pai do commit especificado.",
|
||||
"",
|
||||
"Então, dizer `master^` é equivalente a \"o primeiro pai do `main`\".",
|
||||
"Então, dizer `main^` é equivalente a \"o primeiro pai do `main`\".",
|
||||
"",
|
||||
"`master^^` é o avô (ancestral de segunda geração) do `main`",
|
||||
"`main^^` é o avô (ancestral de segunda geração) do `main`",
|
||||
"",
|
||||
"Vamos fazer checkout do commit logo acima do master."
|
||||
"Vamos fazer checkout do commit logo acima do main."
|
||||
],
|
||||
"afterMarkdowns": [
|
||||
"Boom! Pronto. Muito mais fácil que digitar o hash do commit."
|
||||
],
|
||||
"command": "git checkout master^",
|
||||
"command": "git checkout main^",
|
||||
"beforeCommand": "git commit"
|
||||
}
|
||||
},
|
||||
|
@ -524,16 +524,16 @@ exports.level = {
|
|||
"beforeMarkdowns": [
|
||||
"Votémoslle unha ollada o operador (^) primeiro. Cada vez que o engadimos a unha referencia, estaslle dicindo a commit que queres o pai de esa referencia.",
|
||||
"",
|
||||
"Entón, dicir `master^` é equivalente a \"o primeiro pai do `main`\".",
|
||||
"Entón, dicir `main^` é equivalente a \"o primeiro pai do `main`\".",
|
||||
"",
|
||||
"`master^^` é o avó (ancestral de segunda xeración) do `main`",
|
||||
"`main^^` é o avó (ancestral de segunda xeración) do `main`",
|
||||
"",
|
||||
"Imos facer checkout do commit que está enriba de master."
|
||||
"Imos facer checkout do commit que está enriba de main."
|
||||
],
|
||||
"afterMarkdowns": [
|
||||
"Boom! Ahí o tes. Moito máis rápido que por o hash do commit."
|
||||
],
|
||||
"command": "git checkout master^",
|
||||
"command": "git checkout main^",
|
||||
"beforeCommand": "git commit"
|
||||
}
|
||||
},
|
||||
|
@ -599,16 +599,16 @@ exports.level = {
|
|||
"beforeMarkdowns": [
|
||||
"首先看看操作符 (^)。把这个符号加在引用名称的后面,表示让 Git 寻找指定提交记录的父提交。",
|
||||
"",
|
||||
"所以 `master^` 相当于“`main` 的父节点”。",
|
||||
"所以 `main^` 相当于“`main` 的父节点”。",
|
||||
"",
|
||||
"`master^^` 是 `main` 的第二个父节点",
|
||||
"`main^^` 是 `main` 的第二个父节点",
|
||||
"",
|
||||
"现在咱们切换到 master 的父节点"
|
||||
"现在咱们切换到 main 的父节点"
|
||||
],
|
||||
"afterMarkdowns": [
|
||||
"搞定。这种方式是不是比输入哈希值方便多了?!"
|
||||
],
|
||||
"command": "git checkout master^",
|
||||
"command": "git checkout main^",
|
||||
"beforeCommand": "git commit"
|
||||
}
|
||||
},
|
||||
|
@ -674,16 +674,16 @@ exports.level = {
|
|||
"beforeMarkdowns": [
|
||||
"首先看看插入(^)這一個符號。把這個符號接在某一個 reference 後面,就表示你告訴 git 去找到該 reference 所指向的 commit 的 parent commit。",
|
||||
"",
|
||||
"所以 `master^` 相當於 \"`main` 的 parent commit\"。",
|
||||
"所以 `main^` 相當於 \"`main` 的 parent commit\"。",
|
||||
"",
|
||||
" `master^^` 是 `main` 的 grandparent commit(往前推兩代)",
|
||||
" `main^^` 是 `main` 的 grandparent commit(往前推兩代)",
|
||||
"",
|
||||
"切換到 master的 parent commit"
|
||||
],
|
||||
"afterMarkdowns": [
|
||||
"看吧!完成了。這種方式比輸入代表 commit 的 hash 值簡單多了!"
|
||||
],
|
||||
"command": "git checkout master^",
|
||||
"command": "git checkout main^",
|
||||
"beforeCommand": "git commit"
|
||||
}
|
||||
},
|
||||
|
@ -749,16 +749,16 @@ exports.level = {
|
|||
"beforeMarkdowns": [
|
||||
"まずはカレット(^)から始めましょう。リファレンス名にカレットを追加すると、指定コミットの親コミットを見つけるようにとgitに命令を出しています。",
|
||||
"",
|
||||
"なので `master^`と記述すれば、\"`main`の一個上の親\"、という意味になります。",
|
||||
"なので `main^`と記述すれば、\"`main`の一個上の親\"、という意味になります。",
|
||||
"",
|
||||
"そして`master^^`とはその親の一つの上のコミット(2代前の親)を指します。",
|
||||
"そして`main^^`とはその親の一つの上のコミット(2代前の親)を指します。",
|
||||
"",
|
||||
"masterの上のコミットをここで見てみましょう"
|
||||
],
|
||||
"afterMarkdowns": [
|
||||
"やりました!コミットハッシュを書くよりずっと簡単ですね。"
|
||||
],
|
||||
"command": "git checkout master^",
|
||||
"command": "git checkout main^",
|
||||
"beforeCommand": "git commit"
|
||||
}
|
||||
},
|
||||
|
@ -824,16 +824,16 @@ exports.level = {
|
|||
"beforeMarkdowns": [
|
||||
"Для начала рассмотрим оператор каретки (^). Когда мы добавляем его к имени ссылки, Git воспринимает это как указание найти родителя указанного коммита.",
|
||||
"",
|
||||
"Так что `master^` означает \"первый родитель ветки `main`\".",
|
||||
"Так что `main^` означает \"первый родитель ветки `main`\".",
|
||||
"",
|
||||
"`master^^` означает прародитель (родитель родителя) `main`",
|
||||
"`main^^` означает прародитель (родитель родителя) `main`",
|
||||
"",
|
||||
"Давайте переключимся на коммит Выше `main`"
|
||||
],
|
||||
"afterMarkdowns": [
|
||||
"Опачки! Готово. Сильно проще, чем поиск и указание хеша."
|
||||
],
|
||||
"command": "git checkout master^",
|
||||
"command": "git checkout main^",
|
||||
"beforeCommand": "git commit"
|
||||
}
|
||||
},
|
||||
|
@ -899,16 +899,16 @@ exports.level = {
|
|||
"beforeMarkdowns": [
|
||||
"먼저 캐럿 (^) 연산자 부터 알아보겠습니다. 참조 이름에 하나씩 추가할 때마다, 명시한 커밋의 부모를 찾게 됩니다.",
|
||||
"",
|
||||
"`master^`는 \"`main`의 부모\"와 같은 의미 입니다.",
|
||||
"`main^`는 \"`main`의 부모\"와 같은 의미 입니다.",
|
||||
"",
|
||||
"`master^^` 는 \"`main`의 조부모(부모의 부모)\"를 의미합니다",
|
||||
"`main^^` 는 \"`main`의 조부모(부모의 부모)\"를 의미합니다",
|
||||
"",
|
||||
"master 위에 있는 부모를 체크아웃 해 봅시다."
|
||||
"main 위에 있는 부모를 체크아웃 해 봅시다."
|
||||
],
|
||||
"afterMarkdowns": [
|
||||
"Boom! 됬습니다. 커밋의 해시를 입력하는 것보다 훨씬 쉬운 방법입니다."
|
||||
],
|
||||
"command": "git checkout master^",
|
||||
"command": "git checkout main^",
|
||||
"beforeCommand": "git commit"
|
||||
}
|
||||
},
|
||||
|
@ -974,16 +974,16 @@ exports.level = {
|
|||
"beforeMarkdowns": [
|
||||
"Розберемось спочатку з оператором каретки (^). Кожна каретка додана до посилання (напр. до імені коміту) вказує git що потрібно знайти батька посилання до якого застосована каретка.",
|
||||
"",
|
||||
"Тож `master^` тотожнє до \"перший предок посилання `main`\".",
|
||||
"Тож `main^` тотожнє до \"перший предок посилання `main`\".",
|
||||
"",
|
||||
"`master^^` це дідусь (предок другого покоління) посилання `main`",
|
||||
"`main^^` це дідусь (предок другого покоління) посилання `main`",
|
||||
"",
|
||||
"Давайте перейдемо на коміт трохи вище від master:"
|
||||
"Давайте перейдемо на коміт трохи вище від main:"
|
||||
],
|
||||
"afterMarkdowns": [
|
||||
"Бум! Готово. Трохи простіше ніж набирати хеш коміту"
|
||||
],
|
||||
"command": "git checkout master^",
|
||||
"command": "git checkout main^",
|
||||
"beforeCommand": "git commit"
|
||||
}
|
||||
},
|
||||
|
@ -1049,16 +1049,16 @@ exports.level = {
|
|||
"beforeMarkdowns": [
|
||||
"Xem thử cái dấu mũ (^) trước nào. Mỗi lần bạn nối nó với một cái tên tham chiếu, bạn đang ra lệnh cho Git tìm kiếm cha của một commit cụ thể.",
|
||||
"",
|
||||
"Cho nên `master^` nghĩa là \"cha đầu tiên của `main`\".",
|
||||
"Cho nên `main^` nghĩa là \"cha đầu tiên của `main`\".",
|
||||
"",
|
||||
"`master^^` là ông nội (tổ tiên thế hệ 2) của `main`",
|
||||
"`main^^` là ông nội (tổ tiên thế hệ 2) của `main`",
|
||||
"",
|
||||
"Thử nhảy sang commit trước master nào"
|
||||
"Thử nhảy sang commit trước main nào"
|
||||
],
|
||||
"afterMarkdowns": [
|
||||
"BÙUM! Đã xong. Đơn giản hơn gõ mã băm nhiều"
|
||||
],
|
||||
"command": "git checkout master^",
|
||||
"command": "git checkout main^",
|
||||
"beforeCommand": "git commit"
|
||||
}
|
||||
},
|
||||
|
@ -1124,16 +1124,16 @@ exports.level = {
|
|||
"beforeMarkdowns": [
|
||||
"Poglejmo najprej operator `^`. Vsakič, ko pripneš to imenu reference, poveš Gitu, naj najde starša tega commita.",
|
||||
"",
|
||||
"Torej `master^` je isto kot \"prvi starš brancha `main`\".",
|
||||
"Torej `main^` je isto kot \"prvi starš brancha `main`\".",
|
||||
"",
|
||||
"`master^^` je stari starš (prednik druge generacije) `main`.",
|
||||
"`main^^` je stari starš (prednik druge generacije) `main`.",
|
||||
"",
|
||||
"Checkoutajmo sedaj commit nad masterjem."
|
||||
],
|
||||
"afterMarkdowns": [
|
||||
"Boom! Narejeno. Veliko enostavneje kot tipkanje hasha commita."
|
||||
],
|
||||
"command": "git checkout master^",
|
||||
"command": "git checkout main^",
|
||||
"beforeCommand": "git commit"
|
||||
}
|
||||
},
|
||||
|
|
|
@ -75,9 +75,9 @@ exports.level = {
|
|||
"",
|
||||
"One of the most common ways I use relative refs is to move branches around. You can directly reassign a branch to a commit with the `-f` option. So something like:",
|
||||
"",
|
||||
"`git branch -f master HEAD~3`",
|
||||
"`git branch -f main HEAD~3`",
|
||||
"",
|
||||
"moves (by force) the master branch to three parents behind HEAD."
|
||||
"moves (by force) the main branch to three parents behind HEAD."
|
||||
]
|
||||
}
|
||||
},
|
||||
|
@ -90,7 +90,7 @@ exports.level = {
|
|||
"afterMarkdowns": [
|
||||
"There we go! Relative refs gave us a concise way to refer to `C1` and branch forcing (`-f`) gave us a way to quickly move a branch to that location."
|
||||
],
|
||||
"command": "git branch -f master HEAD~3",
|
||||
"command": "git branch -f main HEAD~3",
|
||||
"beforeCommand": "git commit; git commit; git commit; git checkout -b bugFix"
|
||||
}
|
||||
},
|
||||
|
@ -144,9 +144,9 @@ exports.level = {
|
|||
"",
|
||||
"Una de las formas más comunes en que uso las referencias relativas es para mover las ramas. Podés reasignar directamente una rama a un commit usando la opción `-f`. Así que algo como:",
|
||||
"",
|
||||
"`git branch -f master HEAD~3`",
|
||||
"`git branch -f main HEAD~3`",
|
||||
"",
|
||||
"Mueve (forzadamente) la rama master tres padres atrás de HEAD."
|
||||
"Mueve (forzadamente) la rama main tres padres atrás de HEAD."
|
||||
]
|
||||
}
|
||||
},
|
||||
|
@ -159,7 +159,7 @@ exports.level = {
|
|||
"afterMarkdowns": [
|
||||
"¡Ahí vamos! Las referencias relativas nos dieron una manera concisa de referenciar a `C1`, y forzar la rama (`-f`) nos dio una manera rápida de mover la rama a esa ubicación"
|
||||
],
|
||||
"command": "git branch -f master HEAD~3",
|
||||
"command": "git branch -f main HEAD~3",
|
||||
"beforeCommand": "git commit; git commit; git commit; git checkout -b bugFix"
|
||||
}
|
||||
},
|
||||
|
@ -213,9 +213,9 @@ exports.level = {
|
|||
"",
|
||||
"Una de las formas más comunes en que uso las referencias relativas es para mover las ramas. Puedes reasignar directamente una rama a un commit usando la opción `-f`. Algo así como:",
|
||||
"",
|
||||
"`git branch -f master HEAD~3`",
|
||||
"`git branch -f main HEAD~3`",
|
||||
"",
|
||||
"Mueve (forzadamente) la rama master tres padres por detrás de HEAD."
|
||||
"Mueve (forzadamente) la rama main tres padres por detrás de HEAD."
|
||||
]
|
||||
}
|
||||
},
|
||||
|
@ -228,7 +228,7 @@ exports.level = {
|
|||
"afterMarkdowns": [
|
||||
"¡Allá vamos! Las referencias relativas nos proporcionaron una manera concisa de referenciar a `C1`, y forzar la rama (`-f`) nos dio una manera rápida de mover la rama a esa ubicación"
|
||||
],
|
||||
"command": "git branch -f master HEAD~3",
|
||||
"command": "git branch -f main HEAD~3",
|
||||
"beforeCommand": "git commit; git commit; git commit; git checkout -b bugFix"
|
||||
}
|
||||
},
|
||||
|
@ -282,9 +282,9 @@ exports.level = {
|
|||
"",
|
||||
"Uma das situações mais comuns na qual eu uso referências relativas é quando quero trocar ramos de lugar. Você pode redefinir diretamente o commit para o qual um ramo aponta com a opção `-f`. Desta forma, o seguinte comando:",
|
||||
"",
|
||||
"`git branch -f master HEAD~3`",
|
||||
"`git branch -f main HEAD~3`",
|
||||
"",
|
||||
"Move (à força) o ramo master 3 ancestrais acima do HEAD."
|
||||
"Move (à força) o ramo main 3 ancestrais acima do HEAD."
|
||||
]
|
||||
}
|
||||
},
|
||||
|
@ -297,7 +297,7 @@ exports.level = {
|
|||
"afterMarkdowns": [
|
||||
"Aqui vamos nós! As referências relativas nos deram uma forma concisa de nos referirmos ao `C1`, e a movimentação de ramos (com `-f`) nos deu uma forma de apontar rapidamente um ramo para esse local."
|
||||
],
|
||||
"command": "git branch -f master HEAD~3",
|
||||
"command": "git branch -f main HEAD~3",
|
||||
"beforeCommand": "git commit; git commit; git commit; git checkout -b bugFix"
|
||||
}
|
||||
},
|
||||
|
@ -351,9 +351,9 @@ exports.level = {
|
|||
"",
|
||||
"Un dos usos máis comúns para o uso das referencias relativas é para movelas ramas de lugar. Ti podes reasignar directamente unha rama a un commit usando a opción `-f`. Así que con algo coma:",
|
||||
"",
|
||||
"`git branch -f master HEAD~3`",
|
||||
"`git branch -f main HEAD~3`",
|
||||
"",
|
||||
"Move (de forma forzosa) a rama master 3 commits enriba do HEAD."
|
||||
"Move (de forma forzosa) a rama main 3 commits enriba do HEAD."
|
||||
]
|
||||
}
|
||||
},
|
||||
|
@ -366,7 +366,7 @@ exports.level = {
|
|||
"afterMarkdowns": [
|
||||
"¡Agora é o a nosa quenda! As referencias relativas nos darán unha forma concisa de nos referír a `C1`, e forzar a rama (con `-f`) deunos unha forma rápida de movela rama `main` a esa posición."
|
||||
],
|
||||
"command": "git branch -f master HEAD~3",
|
||||
"command": "git branch -f main HEAD~3",
|
||||
"beforeCommand": "git commit; git commit; git commit; git checkout -b bugFix"
|
||||
}
|
||||
},
|
||||
|
@ -420,9 +420,9 @@ exports.level = {
|
|||
"",
|
||||
"L'une des principales façons dont j'utilise les références relatives est pour réorganiser les branches. Vous pouvez directement réassigner les branches à un commit avec l'option `-f`. Ainsi quelque chose comme :",
|
||||
"",
|
||||
"`git branch -f master HEAD~3`",
|
||||
"`git branch -f main HEAD~3`",
|
||||
"",
|
||||
"bouge (de force) la branche master à trois parents derrière HEAD."
|
||||
"bouge (de force) la branche main à trois parents derrière HEAD."
|
||||
]
|
||||
}
|
||||
},
|
||||
|
@ -435,7 +435,7 @@ exports.level = {
|
|||
"afterMarkdowns": [
|
||||
"On y est ! Les références relatives nous donnent une méthode concise pour référencer `C1` et le forçage de branche (`-f`) nous donne une méthode rapide pour bouger une branche à cet emplacement."
|
||||
],
|
||||
"command": "git branch -f master HEAD~3",
|
||||
"command": "git branch -f main HEAD~3",
|
||||
"beforeCommand": "git commit; git commit; git commit; git checkout -b bugFix"
|
||||
}
|
||||
},
|
||||
|
@ -488,7 +488,7 @@ exports.level = {
|
|||
"",
|
||||
"Das Verschieben von Branches ist einer der häufigsten Anwendungsfälle dafür. Du kannst einen Branchnamen direkt auf einen bestimmten Commit setzen (_ohne_ ihn vorher ausgecheckt haben zu müssen!), indem du den Parameter `-f` benutzt. So in etwa:",
|
||||
"",
|
||||
"`git branch -f master HEAD~3`",
|
||||
"`git branch -f main HEAD~3`",
|
||||
"",
|
||||
"Das bewegt (erzwungenermaßen) den `main` auf den Commit drei Vorgänger vor `HEAD`."
|
||||
]
|
||||
|
@ -503,7 +503,7 @@ exports.level = {
|
|||
"afterMarkdowns": [
|
||||
"Das war's schon! Relative Referenzen ermöglichen es uns den Commit `C1` sehr einfach anzugeben und `git branch -f` ermöglicht es uns, den Branch sehr schnell auf diesen Commit zu setzen."
|
||||
],
|
||||
"command": "git branch -f master HEAD~3",
|
||||
"command": "git branch -f main HEAD~3",
|
||||
"beforeCommand": "git commit; git commit; git commit; git checkout -b bugFix"
|
||||
}
|
||||
},
|
||||
|
@ -557,9 +557,9 @@ exports.level = {
|
|||
"",
|
||||
"我使用相对引用最多的就是移动分支。可以直接使用 `-f` 选项让分支指向另一个提交。例如:",
|
||||
"",
|
||||
"`git branch -f master HEAD~3`",
|
||||
"`git branch -f main HEAD~3`",
|
||||
"",
|
||||
"上面的命令会将 master 分支强制指向 HEAD 的第 3 级父提交。"
|
||||
"上面的命令会将 main 分支强制指向 HEAD 的第 3 级父提交。"
|
||||
]
|
||||
}
|
||||
},
|
||||
|
@ -572,7 +572,7 @@ exports.level = {
|
|||
"afterMarkdowns": [
|
||||
"这就对了! 相对引用为我们提供了一种简洁的引用提交记录 `C1` 的方式, 而 `-f` 则容许我们将分支强制移动到那个位置。"
|
||||
],
|
||||
"command": "git branch -f master HEAD~3",
|
||||
"command": "git branch -f main HEAD~3",
|
||||
"beforeCommand": "git commit; git commit; git commit; git checkout -b bugFix"
|
||||
}
|
||||
},
|
||||
|
@ -626,9 +626,9 @@ exports.level = {
|
|||
"",
|
||||
"我使用相對引用最多的就是移動分支。你可以使用 `-f` 選項直接讓分支指向另一個 commit。舉個例子:",
|
||||
"",
|
||||
"`git branch -f master HEAD~3`",
|
||||
"`git branch -f main HEAD~3`",
|
||||
"",
|
||||
"(強制)移動 master 指向從 HEAD 往上數的第三個 parent commit。"
|
||||
"(強制)移動 main 指向從 HEAD 往上數的第三個 parent commit。"
|
||||
]
|
||||
}
|
||||
},
|
||||
|
@ -680,7 +680,7 @@ exports.level = {
|
|||
"",
|
||||
"相対リファレンスのよくある使い方としてあるのは、ブランチの移動です。`-f`オプションを使ってブランチを直接コミットに関連付けられます。次のようになります",
|
||||
"",
|
||||
"`git branch -f master HEAD~3`",
|
||||
"`git branch -f main HEAD~3`",
|
||||
"",
|
||||
"masterブランチを(強制的に)HEADより親三代前へと移動します。"
|
||||
]
|
||||
|
@ -695,7 +695,7 @@ exports.level = {
|
|||
"afterMarkdowns": [
|
||||
"できました!相対リファレンスを使うことで、手短く`C1`を指定することができ、`-f`でブランチを強制的にそこへ移動することができました。"
|
||||
],
|
||||
"command": "git branch -f master HEAD~3",
|
||||
"command": "git branch -f main HEAD~3",
|
||||
"beforeCommand": "git commit; git commit; git commit; git checkout -b bugFix"
|
||||
}
|
||||
},
|
||||
|
@ -749,7 +749,7 @@ exports.level = {
|
|||
"",
|
||||
"Одна из наиболее распространённых целей, для которых используются относительные ссылки - это перемещение веток. Можно напрямую прикрепить ветку к коммиту при помощи опции `-f`. Например, команда:",
|
||||
"",
|
||||
"`git branch -f master HEAD~3`",
|
||||
"`git branch -f main HEAD~3`",
|
||||
"",
|
||||
"Переместит (принудительно) ветку `main` на три родителя назад от `HEAD`."
|
||||
]
|
||||
|
@ -764,7 +764,7 @@ exports.level = {
|
|||
"afterMarkdowns": [
|
||||
"Вуаля! Относительная ссылка дала нам возможность просто сослаться на `C1`, а branch forcing (`-f`) позволил быстро переместить указатель ветки на этот коммит."
|
||||
],
|
||||
"command": "git branch -f master HEAD~3",
|
||||
"command": "git branch -f main HEAD~3",
|
||||
"beforeCommand": "git commit; git commit; git commit; git checkout -b bugFix"
|
||||
}
|
||||
},
|
||||
|
@ -818,9 +818,9 @@ exports.level = {
|
|||
"",
|
||||
"제가 상대 참조를 사용하는 가장 일반적인 방법은 브랜치를 옮길 때 입니다. `-f` 옵션을 이용해서 브랜치를 특정 커밋에 직접적으로 재지정 할 수 있습니다. 이런 식으로 말이죠:",
|
||||
"",
|
||||
"`git branch -f master HEAD~3`",
|
||||
"`git branch -f main HEAD~3`",
|
||||
"",
|
||||
"(강제로) master 브랜치를 HEAD에서 세번 뒤로 옮겼습니다. (three parents behind HEAD)."
|
||||
"(강제로) main 브랜치를 HEAD에서 세번 뒤로 옮겼습니다. (three parents behind HEAD)."
|
||||
]
|
||||
}
|
||||
},
|
||||
|
@ -832,7 +832,7 @@ exports.level = {
|
|||
],
|
||||
"afterMarkdowns": [
|
||||
"됬네요! 우리는 상대 참조를 통해 `C1`을 간결한 방법으로 참조할 수 있었고 브랜치 강제(`-f`)를 통해 브랜치를 저 위치로 빠르게 옮길 수 있었습니다." ],
|
||||
"command": "git branch -f master HEAD~3",
|
||||
"command": "git branch -f main HEAD~3",
|
||||
"beforeCommand": "git commit; git commit; git commit; git checkout -b bugFix"
|
||||
}
|
||||
},
|
||||
|
@ -886,9 +886,9 @@ exports.level = {
|
|||
"",
|
||||
"Один з найуживаніших прийомів де я використовую відносні посилання це переміщення гілок. Ти можеш напряму переспрямувати бранч на якийсь коміт використавши опцію `-f` (force, тобто насильно). Щось на зразок:",
|
||||
"",
|
||||
"`git branch -f master HEAD~3`",
|
||||
"`git branch -f main HEAD~3`",
|
||||
"",
|
||||
"Переміщує (насильно) гілку master на три предки позад HEAD."
|
||||
"Переміщує (насильно) гілку main на три предки позад HEAD."
|
||||
]
|
||||
}
|
||||
},
|
||||
|
@ -901,7 +901,7 @@ exports.level = {
|
|||
"afterMarkdowns": [
|
||||
"Ось і маєш! Відносні посилання дають нам зручний спосіб доступу до коміту`C1` крім того форсування бранчів (`-f`) дає нам можливість швидко перемістити гілку на цей коміт"
|
||||
],
|
||||
"command": "git branch -f master HEAD~3",
|
||||
"command": "git branch -f main HEAD~3",
|
||||
"beforeCommand": "git commit; git commit; git commit; git checkout -b bugFix"
|
||||
}
|
||||
},
|
||||
|
@ -955,9 +955,9 @@ exports.level = {
|
|||
"",
|
||||
"Tôi thì hay thường dùng tham chiếu tương đối để dịch chuyển nhánh. Bạn có thể trực tiếp gán lại nhánh cho commit với cú pháp `-f`. Kiểu như thế này:",
|
||||
"",
|
||||
"`git branch -f master HEAD~3`",
|
||||
"`git branch -f main HEAD~3`",
|
||||
"",
|
||||
"dịch chuyển (ép buộc) nhánh master lên 3 commit phía trên HEAD."
|
||||
"dịch chuyển (ép buộc) nhánh main lên 3 commit phía trên HEAD."
|
||||
]
|
||||
}
|
||||
},
|
||||
|
@ -970,7 +970,7 @@ exports.level = {
|
|||
"afterMarkdowns": [
|
||||
"Đóóóó! Tham chiếu tương đối cho chúng ta một cách chuẩn xác để trỏ tới `C1` và ép nhánh bằng (`-f`) thì dịch chuyển nhanh chóng nhánh tới đó."
|
||||
],
|
||||
"command": "git branch -f master HEAD~3",
|
||||
"command": "git branch -f main HEAD~3",
|
||||
"beforeCommand": "git commit; git commit; git commit; git checkout -b bugFix"
|
||||
}
|
||||
},
|
||||
|
@ -1024,9 +1024,9 @@ exports.level = {
|
|||
"",
|
||||
"Eden izmed najpogostejših načinov, kjer uporabljam relativne reference je za premikanje branchev naokoli. Direktno lahko premakneš branch na nek commit z `-f` opcijo. Takole nekako:",
|
||||
"",
|
||||
"`git branch -f master HEAD~3`",
|
||||
"`git branch -f main HEAD~3`",
|
||||
"",
|
||||
"premakne (s force-om) master branch tri commite za HEAD."
|
||||
"premakne (s force-om) main branch tri commite za HEAD."
|
||||
]
|
||||
}
|
||||
},
|
||||
|
@ -1039,7 +1039,7 @@ exports.level = {
|
|||
"afterMarkdowns": [
|
||||
"Tako ja! Relativne reference so nam dale jedrnat način s katerim se lahko nanašamo na `C1` in branch force-anje (`-f`) nam je omogočilo, da hitro prestavimo branch na to lokacijo."
|
||||
],
|
||||
"command": "git branch -f master HEAD~3",
|
||||
"command": "git branch -f main HEAD~3",
|
||||
"beforeCommand": "git commit; git commit; git commit; git checkout -b bugFix"
|
||||
}
|
||||
},
|
||||
|
|
|
@ -64,7 +64,7 @@ exports.level = {
|
|||
"Let's see what that looks like:"
|
||||
],
|
||||
"afterMarkdowns": [
|
||||
"Nice! Git moved the master branch reference back to `C1`; now our local repository is in a state as if `C2` had never happened."
|
||||
"Nice! Git moved the main branch reference back to `C1`; now our local repository is in a state as if `C2` had never happened."
|
||||
],
|
||||
"command": "git reset HEAD~1",
|
||||
"beforeCommand": "git commit"
|
||||
|
@ -127,7 +127,7 @@ exports.level = {
|
|||
"Veamos cómo es eso:"
|
||||
],
|
||||
"afterMarkdowns": [
|
||||
"¡Genial! git simplemente movió la referencia de la rama master atrás hacia `C1`. Ahora tu repositorio local está en un estado como si `C2` nunca hubiera ocurrido."
|
||||
"¡Genial! git simplemente movió la referencia de la rama main atrás hacia `C1`. Ahora tu repositorio local está en un estado como si `C2` nunca hubiera ocurrido."
|
||||
],
|
||||
"command": "git reset HEAD~1",
|
||||
"beforeCommand": "git commit"
|
||||
|
@ -190,7 +190,7 @@ exports.level = {
|
|||
"Veamos cómo es eso:"
|
||||
],
|
||||
"afterMarkdowns": [
|
||||
"¡Genial! git simplemente movió la referencia de la rama master atrás hacia `C1`. Ahora tu repositorio local está en un estado como si `C2` nunca hubiera ocurrido."
|
||||
"¡Genial! git simplemente movió la referencia de la rama main atrás hacia `C1`. Ahora tu repositorio local está en un estado como si `C2` nunca hubiera ocurrido."
|
||||
],
|
||||
"command": "git reset HEAD~1",
|
||||
"beforeCommand": "git commit"
|
||||
|
@ -253,7 +253,7 @@ exports.level = {
|
|||
"Vejamos como funciona:"
|
||||
],
|
||||
"afterMarkdowns": [
|
||||
"Legal! O Git simplesmente moveu a referência do ramo master de volta para `C1`; agora o nosso repositório local está em um estado como se o `C2` nunca tivesse acontecido."
|
||||
"Legal! O Git simplesmente moveu a referência do ramo main de volta para `C1`; agora o nosso repositório local está em um estado como se o `C2` nunca tivesse acontecido."
|
||||
],
|
||||
"command": "git reset HEAD~1",
|
||||
"beforeCommand": "git commit"
|
||||
|
@ -316,7 +316,7 @@ exports.level = {
|
|||
"Vexamos o seu funcionamento:"
|
||||
],
|
||||
"afterMarkdowns": [
|
||||
"¡Bye bye! Git moveu a referencia da rama master cara atrás, ata o commit `C1`; agora o teu repositorio local está coma se o commit `C2` nunca acontecera."
|
||||
"¡Bye bye! Git moveu a referencia da rama main cara atrás, ata o commit `C1`; agora o teu repositorio local está coma se o commit `C2` nunca acontecera."
|
||||
],
|
||||
"command": "git reset HEAD~1",
|
||||
"beforeCommand": "git commit"
|
||||
|
@ -505,7 +505,7 @@ exports.level = {
|
|||
"Regardons à quoi cela ressemble :"
|
||||
],
|
||||
"afterMarkdowns": [
|
||||
"Bravo ! Git a simplement déplacé la référence de la branche master en la faisant revenir sur `C1`; désormais notre dépôt est dans le même état que si `C2` n'avait jamais eu lieu."
|
||||
"Bravo ! Git a simplement déplacé la référence de la branche main en la faisant revenir sur `C1`; désormais notre dépôt est dans le même état que si `C2` n'avait jamais eu lieu."
|
||||
],
|
||||
"command": "git reset HEAD~1",
|
||||
"beforeCommand": "git commit"
|
||||
|
@ -569,7 +569,7 @@ exports.level = {
|
|||
],
|
||||
"command": "git reset HEAD~1",
|
||||
"afterMarkdowns": [
|
||||
"漂亮! Git 把 master 分支移回到 `C1`;现在我们的本地代码库根本就不知道有 `C2` 这个提交了。",
|
||||
"漂亮! Git 把 main 分支移回到 `C1`;现在我们的本地代码库根本就不知道有 `C2` 这个提交了。",
|
||||
"",
|
||||
"(译者注:在reset后, `C2` 所做的变更还在,但是处于未加入暂存区状态。)"
|
||||
],
|
||||
|
@ -634,7 +634,7 @@ exports.level = {
|
|||
],
|
||||
"command": "git reset HEAD~1",
|
||||
"afterMarkdowns": [
|
||||
"太好了! Git 把 master branch 簡單地移回到 `C1`;現在在我們的 local 已經退回到沒有 commit 過 `C2` 的狀態了。"
|
||||
"太好了! Git 把 main branch 簡單地移回到 `C1`;現在在我們的 local 已經退回到沒有 commit 過 `C2` 的狀態了。"
|
||||
],
|
||||
"beforeCommand": "git commit"
|
||||
}
|
||||
|
@ -696,7 +696,7 @@ exports.level = {
|
|||
"어떤 그림인지 한번 보죠:"
|
||||
],
|
||||
"afterMarkdowns": [
|
||||
"그림에서처럼 master 브랜치가 가리키던 커밋을 `C1`로 다시 옮겼습니다; 이러면 로컬 저장소에는 마치 `C2`커밋이 아예 없었던 것과 마찬가지 상태가 됩니다."
|
||||
"그림에서처럼 main 브랜치가 가리키던 커밋을 `C1`로 다시 옮겼습니다; 이러면 로컬 저장소에는 마치 `C2`커밋이 아예 없었던 것과 마찬가지 상태가 됩니다."
|
||||
],
|
||||
"command": "git reset HEAD~1",
|
||||
"beforeCommand": "git commit"
|
||||
|
@ -822,7 +822,7 @@ exports.level = {
|
|||
"Давайте подивимося, як це виглядає:"
|
||||
],
|
||||
"afterMarkdowns": [
|
||||
"Чудово! Git перемістив посилання гілки master назад до `C1`; тепер наш локальний репозиторій в такому стані, наче коміту `C2` ніколи не було."
|
||||
"Чудово! Git перемістив посилання гілки main назад до `C1`; тепер наш локальний репозиторій в такому стані, наче коміту `C2` ніколи не було."
|
||||
],
|
||||
"command": "git reset HEAD~1",
|
||||
"beforeCommand": "git commit"
|
||||
|
@ -885,7 +885,7 @@ exports.level = {
|
|||
"Cùng xem thử nó trông thế nào nào:"
|
||||
],
|
||||
"afterMarkdowns": [
|
||||
"Hay! Git chuyển tham chiếu của master trở lại `C1`; bây giờ kho cá nhân của ta trông như thể commit `C2` chưa bao giờ xảy ra vậy."
|
||||
"Hay! Git chuyển tham chiếu của main trở lại `C1`; bây giờ kho cá nhân của ta trông như thể commit `C2` chưa bao giờ xảy ra vậy."
|
||||
],
|
||||
"command": "git reset HEAD~1",
|
||||
"beforeCommand": "git commit"
|
||||
|
@ -948,7 +948,7 @@ exports.level = {
|
|||
"Poglejmo kako to izgleda:"
|
||||
],
|
||||
"afterMarkdowns": [
|
||||
"Lepo! Git je premaknil master branch referenco nazaj na `C1`; sedaj je naš lokalen repozitorij v stanju, kot da se `C2` sploh ni nikoli zgodil."
|
||||
"Lepo! Git je premaknil main branch referenco nazaj na `C1`; sedaj je naš lokalen repozitorij v stanju, kot da se `C2` sploh ni nikoli zgodil."
|
||||
],
|
||||
"command": "git reset HEAD~1",
|
||||
"beforeCommand": "git commit"
|
||||
|
|
|
@ -26,19 +26,19 @@ exports.level = {
|
|||
"pl" : "Ponad 9000 podbić"
|
||||
},
|
||||
"hint": {
|
||||
"en_US": "Remember, the most efficient way might be to only update master at the end...",
|
||||
"de_DE": "Nicht vergessen: nur den master zu aktualisieren könnte die effizienteste Möglichkeit sein ...",
|
||||
"es_AR": "Acordate, la manera más eficiente podría ser actualizar master sólo al final...",
|
||||
"es_ES": "Recuerda, la manera más eficiente podría ser actualizar master sólo al final...",
|
||||
"pt_BR": "Lembre-se, a forma mais eficiente pode ser atualizar o master por último...",
|
||||
"gl" : "Lembra, a forma máis eficiente pode ser actualizar a rama master ó final...",
|
||||
"fr_FR": "Rappelez-vous, la façon la plus efficace peut être de mettre à jour master seulement à la fin ...",
|
||||
"en_US": "Remember, the most efficient way might be to only update main at the end...",
|
||||
"de_DE": "Nicht vergessen: nur den main zu aktualisieren könnte die effizienteste Möglichkeit sein ...",
|
||||
"es_AR": "Acordate, la manera más eficiente podría ser actualizar main sólo al final...",
|
||||
"es_ES": "Recuerda, la manera más eficiente podría ser actualizar main sólo al final...",
|
||||
"pt_BR": "Lembre-se, a forma mais eficiente pode ser atualizar o main por último...",
|
||||
"gl" : "Lembra, a forma máis eficiente pode ser actualizar a rama main ó final...",
|
||||
"fr_FR": "Rappelez-vous, la façon la plus efficace peut être de mettre à jour main seulement à la fin ...",
|
||||
"ja" : "最も効率的なやり方はmasterを最後に更新するだけかもしれない・・・",
|
||||
"ko": "아마도 master를 마지막에 업데이트하는 것이 가장 효율적인 방법일 것입니다...",
|
||||
"zh_CN": "记住,最后更新 master 分支可能是最高效的方法……",
|
||||
"zh_TW": "要記住喔! 把 master branch 留到最後更新可能是最有效率的方法。",
|
||||
"zh_CN": "记住,最后更新 main 分支可能是最高效的方法……",
|
||||
"zh_TW": "要記住喔! 把 main branch 留到最後更新可能是最有效率的方法。",
|
||||
"ru_RU": "Не забудь, что лучше всего сдвинуть мастер в самом конце...",
|
||||
"uk" : "Не забувай, що краще всього буде перемістити master в самому кінці... ",
|
||||
"uk" : "Не забувай, що краще всього буде перемістити main в самому кінці... ",
|
||||
"vi" : "Hãy nhớ rằng, cách tốt nhất có lẽ là nên cuối cùng mới cập nhật nhánh `main`... ",
|
||||
"sl_SI": "Pomni, morda je najbolj učinkovit način posodabljanje masterja samo na koncu ...",
|
||||
"pl" : "Pamiętaj, że najskuteczniejszym sposobem może być aktualizacja `main` na końcu..."
|
||||
|
@ -52,7 +52,7 @@ exports.level = {
|
|||
"markdowns": [
|
||||
"### Rebasing Multiple Branches",
|
||||
"",
|
||||
"Man, we have a lot of branches going on here! Let's rebase all the work from these branches onto master.",
|
||||
"Man, we have a lot of branches going on here! Let's rebase all the work from these branches onto main.",
|
||||
"",
|
||||
"Upper management is making this a bit trickier though -- they want the commits to all be in sequential order. So this means that our final tree should have `C7'` at the bottom, `C6'` above that, and so on, all in order.",
|
||||
"",
|
||||
|
@ -70,7 +70,7 @@ exports.level = {
|
|||
"markdowns": [
|
||||
"### Rebaseando múltiples ramas",
|
||||
"",
|
||||
"Man, ¡hay un montón de ramas acá! Rebaseemos todo el trabajo de esas ramas sobre master.",
|
||||
"Man, ¡hay un montón de ramas acá! Rebaseemos todo el trabajo de esas ramas sobre main.",
|
||||
"",
|
||||
"La gente de administración nos está haciendo las cosas un poco complicadas, igual -- quieren que nuestros commits estén todos en orden secuencial. Esto significa que nuestro árbol final tendría que tener `C7` al final, `C6` antes de ese, y así siguiendo, todos en orden.",
|
||||
"",
|
||||
|
@ -88,7 +88,7 @@ exports.level = {
|
|||
"markdowns": [
|
||||
"### Rebaseando múltiples ramas",
|
||||
"",
|
||||
"Fíjate, ¡hay un montón de ramas aquí! Rebaseemos todo el trabajo de esas ramas sobre master.",
|
||||
"Fíjate, ¡hay un montón de ramas aquí! Rebaseemos todo el trabajo de esas ramas sobre main.",
|
||||
"",
|
||||
"La gente de administración nos está haciendo las cosas un poco complicadas, igual -- quieren que nuestros commits estén todos en orden secuencial. Esto significa que nuestro árbol final tendría que tener `C7` al final, `C6` antes de ese, y así siguiendo, todos en orden.",
|
||||
"",
|
||||
|
@ -106,7 +106,7 @@ exports.level = {
|
|||
"markdowns": [
|
||||
"### Fazendo rebase em múltiplos ramos",
|
||||
"",
|
||||
"Cara, temos um monte de ramos aqui! Vamos fazer um rebase de todo o trabalho contido nesses ramos para o master.",
|
||||
"Cara, temos um monte de ramos aqui! Vamos fazer um rebase de todo o trabalho contido nesses ramos para o main.",
|
||||
"",
|
||||
"No entanto, a cúpula da administração está tornando as coisas mais difíceis -- eles querem que os commits estejam todos em ordem sequencial. Isso significa que a nossa árvore final precisa ter o `C7'` por último, `C6'` acima disso, e assim por diante, tudo ordenado.",
|
||||
"",
|
||||
|
@ -124,7 +124,7 @@ exports.level = {
|
|||
"markdowns": [
|
||||
"### Fazendo rebase en múltiples ramas",
|
||||
"",
|
||||
"Neno, temos unha chea de ramas aquí! Imos facer rebase de todo o traballo contido nesas ramas para a master.",
|
||||
"Neno, temos unha chea de ramas aquí! Imos facer rebase de todo o traballo contido nesas ramas para a main.",
|
||||
"",
|
||||
"A xente de administración estanos a facer as cousas complicadas, igual eles queren que os commits estén todos en orde secuencial. Isto significa que a nosa árbore final precisa ter `C7'` de último, `C6'` inda por riba, está por adiante, todo ordeado.",
|
||||
"",
|
||||
|
@ -142,7 +142,7 @@ exports.level = {
|
|||
"markdowns": [
|
||||
"### Rebaser plusieurs branches",
|
||||
"",
|
||||
"Dis-donc, nous avons beaucoup de branches par ici ! Rebasons tout le travail de ces branches dans master.",
|
||||
"Dis-donc, nous avons beaucoup de branches par ici ! Rebasons tout le travail de ces branches dans main.",
|
||||
"",
|
||||
"Les patrons rendent cela encore plus compliqué -- ils veulent que les commits soient fait de manière séquentielle. Cela signifie donc que dans votre arbre final `C7'` est tout en bas, `C6'` juste au-dessus, et ainsi de suite, tout dans cet ordre.",
|
||||
"",
|
||||
|
@ -196,7 +196,7 @@ exports.level = {
|
|||
"markdowns": [
|
||||
"### 多分支 rebase",
|
||||
"",
|
||||
"哥们儿,我们准备了很多分支!咱们把这些分支 rebase 到 master 上吧。",
|
||||
"哥们儿,我们准备了很多分支!咱们把这些分支 rebase 到 main 上吧。",
|
||||
"",
|
||||
"但是你的领导给你提了点要求 —— 他们希望得到有序的提交历史,也就是我们最终的结果应该是 `C6'` 在 `C7'` 上面, `C5'` 在 `C6'` 上面,依此类推。",
|
||||
"",
|
||||
|
@ -214,7 +214,7 @@ exports.level = {
|
|||
"markdowns": [
|
||||
"### rebase 多個 branch",
|
||||
"",
|
||||
"嗨!現在我們有很多 branch 了啦!讓我們做一下 rebase,將這些分支接到 master branch 上吧。",
|
||||
"嗨!現在我們有很多 branch 了啦!讓我們做一下 rebase,將這些分支接到 main branch 上吧。",
|
||||
"",
|
||||
"但是你的主管找了點麻煩,他們希望得到有序的 commit history,也就是我們最終的結果是 `C7'` 在最下面,`C6'` 在它上面,以此類推。",
|
||||
"",
|
||||
|
@ -268,7 +268,7 @@ exports.level = {
|
|||
"markdowns": [
|
||||
"### Ребейсимо кілька гілок",
|
||||
"",
|
||||
"В нас тут до біса гілок! Перенесімо всі зміни з різних гілок в master.",
|
||||
"В нас тут до біса гілок! Перенесімо всі зміни з різних гілок в main.",
|
||||
"",
|
||||
"Але вище керівництво нам не полегшує життя -- вони хочуть, щоб всі коміти були впорядковані. Це означає, що в результаті коміт `C7'` має бути з самого низу, `C6'` трохи вище, і так далі, все за порядком.",
|
||||
"",
|
||||
|
@ -303,7 +303,7 @@ exports.level = {
|
|||
"markdowns": [
|
||||
"### Rebasing Večih Branchev",
|
||||
"",
|
||||
"Uf, tu imamo pa res veliko branchev! Pojdimo in rebaseajmo vse delo iz teh branchev na master.",
|
||||
"Uf, tu imamo pa res veliko branchev! Pojdimo in rebaseajmo vse delo iz teh branchev na main.",
|
||||
"",
|
||||
"Toda vodstvo se je odločilo, da le ne bo tako preprosto -- žeijo da so vsi commiti v zaporednem vrstnem redu. To pomeni, da bo naše ciljno drevo moralo imeti `C7'` na dnu, `C6'` nad njim, in tako dalje po vrsti.",
|
||||
"",
|
||||
|
|
|
@ -51,7 +51,7 @@ exports.level = {
|
|||
"",
|
||||
"WOAHHHhhh Nelly! We have quite the goal to reach in this level.",
|
||||
"",
|
||||
"Here we have `main` that is a few commits ahead of branches `one` `two` and `three`. For whatever reason, we need to update these three other branches with modified versions of the last few commits on master.",
|
||||
"Here we have `main` that is a few commits ahead of branches `one` `two` and `three`. For whatever reason, we need to update these three other branches with modified versions of the last few commits on main.",
|
||||
"",
|
||||
"Branch `one` needs a re-ordering and a deletion of `C5`. `two` needs pure reordering, and `three` only needs one commit!",
|
||||
"",
|
||||
|
@ -71,7 +71,7 @@ exports.level = {
|
|||
"",
|
||||
"WOAHHHhhh ! Nous avons pas mal d'objectifs dans ce niveau.",
|
||||
"",
|
||||
"Actuellement nous avons `main` qui se situe quelques commits devant les branches `one` `two` et `three`. Pour une raison quelconque, nous avons besoin de mettre ces trois branches à jour avec les modifications des derniers commits sur master.",
|
||||
"Actuellement nous avons `main` qui se situe quelques commits devant les branches `one` `two` et `three`. Pour une raison quelconque, nous avons besoin de mettre ces trois branches à jour avec les modifications des derniers commits sur main.",
|
||||
"",
|
||||
"La branche `one` a besoin d'une réorganisation et de la suppression de `C5`. `two` doit simplement être réordonnée, et `three` ne nécessite qu'un commit !",
|
||||
"",
|
||||
|
@ -91,7 +91,7 @@ exports.level = {
|
|||
"",
|
||||
"¡WOAHHHhhh Nelly! Tenemos un _pequeño_ objetivo al que llegar en este nivel.",
|
||||
"",
|
||||
"Tenemos un `main` que está algunos commits adelante de `one`, `two` y `three`. Por alguna razón, necesitamos actualizar esas tres ramas con versiones modificadas de los últimos commits de master.",
|
||||
"Tenemos un `main` que está algunos commits adelante de `one`, `two` y `three`. Por alguna razón, necesitamos actualizar esas tres ramas con versiones modificadas de los últimos commits de main.",
|
||||
"",
|
||||
"La rama `one` necesita reordenarse, y eliminar `C5`. `two` necesita sólo reordenamiento, y `three` ¡sólo necesita un commit!",
|
||||
"",
|
||||
|
@ -111,7 +111,7 @@ exports.level = {
|
|||
"",
|
||||
"¡Vaya, vaya! Tenemos un _pequeño_ objetivo al que llegar en este nivel.",
|
||||
"",
|
||||
"La rama `main` se encuentra algunos commits por delante de `one`, `two` y `three`. Por alguna razón, necesitamos actualizar esas tres ramas con versiones modificadas de los últimos commits de master.",
|
||||
"La rama `main` se encuentra algunos commits por delante de `one`, `two` y `three`. Por alguna razón, necesitamos actualizar esas tres ramas con versiones modificadas de los últimos commits de main.",
|
||||
"",
|
||||
"La rama `one` necesita reordenarse, y eliminar `C5`. `two` necesita sólo reordenamiento, y `three` ¡sólo necesita un commit!",
|
||||
"",
|
||||
|
@ -131,7 +131,7 @@ exports.level = {
|
|||
"",
|
||||
"Uhuuuuu Nelly! Temos um belo de um objetivo para alcançar neste nível.",
|
||||
"",
|
||||
"Temos aqui um `main` que está alguns commits atrás dos ramos `one`, `two` e `three`. Seja lá por qual razão, precisamos atualizar esses três outros ramos com versões modificadas dos últimos commits do master.",
|
||||
"Temos aqui um `main` que está alguns commits atrás dos ramos `one`, `two` e `three`. Seja lá por qual razão, precisamos atualizar esses três outros ramos com versões modificadas dos últimos commits do main.",
|
||||
"",
|
||||
"O ramo `one` precisa de uma reordenação e da exclusão do `C5`. O `two` precisa apenas de reordenação. O `three` precisa de um único commit!",
|
||||
"",
|
||||
|
@ -151,7 +151,7 @@ exports.level = {
|
|||
"",
|
||||
"¡Íscalle lura! Temos un _pequeno_ obxectivo que acadar neste nivel.",
|
||||
"",
|
||||
"Temos aquí un `main` que está algúns commits por detrás das ramas `one`, `two` e `three`. Por algunha razón, precisamos atualizar esas tres ramas con versións modificadas dos últimos commits de master.",
|
||||
"Temos aquí un `main` que está algúns commits por detrás das ramas `one`, `two` e `three`. Por algunha razón, precisamos atualizar esas tres ramas con versións modificadas dos últimos commits de main.",
|
||||
"",
|
||||
"A rama `one` precisa de unha reordenación, e votar fora a `C5`. O `two` precisa apenas de reordenacións. O `three` precisa dun único commit!",
|
||||
"",
|
||||
|
@ -231,7 +231,7 @@ exports.level = {
|
|||
"",
|
||||
"哇塞大神!這關我們要來點不同的!",
|
||||
"",
|
||||
"現在我們的 `main` branch 是比 `one` `two` 和 `three` 這三個 branch 多了幾個 commit。由於某種原因,我們需要將 master 所新增的幾個 commit 套用到其它三個 branch 上面。",
|
||||
"現在我們的 `main` branch 是比 `one` `two` 和 `three` 這三個 branch 多了幾個 commit。由於某種原因,我們需要將 main 所新增的幾個 commit 套用到其它三個 branch 上面。",
|
||||
"",
|
||||
"`one` branch 需要重新排序和取消 `C5` 這一個 commit, `two` 需要完全重排,而 `three` 只需要再一個 commit。",
|
||||
"",
|
||||
|
|
|
@ -57,7 +57,7 @@ exports.level = {
|
|||
"type": "GitDemonstrationView",
|
||||
"options": {
|
||||
"beforeMarkdowns": [
|
||||
"The default behavior of `fakeTeamwork` is to simply plop down a commit on master."
|
||||
"The default behavior of `fakeTeamwork` is to simply plop down a commit on main."
|
||||
],
|
||||
"afterMarkdowns": [
|
||||
"There we go -- the remote was updated with a new commit, and we haven't downloaded that commit yet because we haven't run `git fetch`."
|
||||
|
@ -111,7 +111,7 @@ exports.level = {
|
|||
"type": "GitDemonstrationView",
|
||||
"options": {
|
||||
"beforeMarkdowns": [
|
||||
"Le comportement par défaut de `fakeTeamwork` est tout simplement de faire apparaître un commit sur le master distant :"
|
||||
"Le comportement par défaut de `fakeTeamwork` est tout simplement de faire apparaître un commit sur le main distant :"
|
||||
],
|
||||
"afterMarkdowns": [
|
||||
"Voilà : le dépôt distant a été mis à jour avec un nouveau commit, et nous n'avons pas encore téléchargé ce commit parce que nous n'avons pas exécuté la commande `git fetch`."
|
||||
|
@ -165,7 +165,7 @@ exports.level = {
|
|||
"type": "GitDemonstrationView",
|
||||
"options": {
|
||||
"beforeMarkdowns": [
|
||||
"El comportamiento por default de `fakeTeamwork` es simplemente crear un commit en master."
|
||||
"El comportamiento por default de `fakeTeamwork` es simplemente crear un commit en main."
|
||||
],
|
||||
"afterMarkdowns": [
|
||||
"Ahí está: el remoto se actualizó con un nuevo commit, y todavía no nos bajamos ese commit porque aún no hicimos `git fetch`."
|
||||
|
@ -219,7 +219,7 @@ exports.level = {
|
|||
"type": "GitDemonstrationView",
|
||||
"options": {
|
||||
"beforeMarkdowns": [
|
||||
"El comportamiento por default de `fakeTeamwork` es simplemente crear un commit en master."
|
||||
"El comportamiento por default de `fakeTeamwork` es simplemente crear un commit en main."
|
||||
],
|
||||
"afterMarkdowns": [
|
||||
"Ahí está: el remoto se actualizó con un nuevo commit, y todavía no nos bajamos ese commit porque aún no hicimos `git fetch`."
|
||||
|
@ -273,7 +273,7 @@ exports.level = {
|
|||
"type": "GitDemonstrationView",
|
||||
"options": {
|
||||
"beforeMarkdowns": [
|
||||
"O comportamento padrão do `fakeTeamwork` é simplesmente fazer aparecer um commit no master."
|
||||
"O comportamento padrão do `fakeTeamwork` é simplesmente fazer aparecer um commit no main."
|
||||
],
|
||||
"afterMarkdowns": [
|
||||
"Aqui vamos nos -- o repositório remoto foi atualizado com um novo commit, e ainda não baixamos esse commit porque não executamos um `git fetch`."
|
||||
|
@ -327,7 +327,7 @@ exports.level = {
|
|||
"type": "GitDemonstrationView",
|
||||
"options": {
|
||||
"beforeMarkdowns": [
|
||||
"O comportamento por defecto de `fakeTeamwork` é simplemente crear un commit en master na rama remota."
|
||||
"O comportamento por defecto de `fakeTeamwork` é simplemente crear un commit en main na rama remota."
|
||||
],
|
||||
"afterMarkdowns": [
|
||||
"Ahí o tes: a rama remota actualizouse cun novo commit, e aínda non nos baixamos ese commit porque inda non fixemos `git fetch`."
|
||||
|
@ -381,7 +381,7 @@ exports.level = {
|
|||
"type": "GitDemonstrationView",
|
||||
"options": {
|
||||
"beforeMarkdowns": [
|
||||
"`fakeTeamwork` 的預設行為是在送一個 commit 給 master 分支"
|
||||
"`fakeTeamwork` 的預設行為是在送一個 commit 給 main 分支"
|
||||
],
|
||||
"afterMarkdowns": [
|
||||
"我就說吧!remote 已經藉由一個新的 commit 而更新了,而且因為我們還沒有用 `git fetch`,所以表示我們還沒有下載該 commit。"
|
||||
|
@ -435,7 +435,7 @@ exports.level = {
|
|||
"type": "GitDemonstrationView",
|
||||
"options": {
|
||||
"beforeMarkdowns": [
|
||||
"`fakeTeamwork` 默认操作就是在远程仓库的 master 分支上做一次提交。"
|
||||
"`fakeTeamwork` 默认操作就是在远程仓库的 main 分支上做一次提交。"
|
||||
],
|
||||
"afterMarkdowns": [
|
||||
"完成了 —— 远程仓库增加了一个新提交,我们还没有下载它,因为我们还没有执行 `git fetch`。"
|
||||
|
@ -543,7 +543,7 @@ exports.level = {
|
|||
"type": "GitDemonstrationView",
|
||||
"options": {
|
||||
"beforeMarkdowns": [
|
||||
"Поведение команды `fakeTeamwork` по умолчанию заключается в том, чтобы просто \"инициировать\" коммит на master-е"
|
||||
"Поведение команды `fakeTeamwork` по умолчанию заключается в том, чтобы просто \"инициировать\" коммит на main-е"
|
||||
],
|
||||
"afterMarkdowns": [
|
||||
"Ну вот - удалённый репозиторий был изменён при помощи добавления нового коммита, и мы ещё не скачали этот коммит, потому что не запустили команду `git fetch`."
|
||||
|
@ -761,7 +761,7 @@ exports.level = {
|
|||
"type": "GitDemonstrationView",
|
||||
"options": {
|
||||
"beforeMarkdowns": [
|
||||
"Hành xử mặc định của `fakeTeamwork` đơn giản là tạo ra một commit ở trên nhánh master từ xa."
|
||||
"Hành xử mặc định của `fakeTeamwork` đơn giản là tạo ra một commit ở trên nhánh main từ xa."
|
||||
],
|
||||
"afterMarkdowns": [
|
||||
"Đó -- kho chứa từ xa đã được cập nhật thêm một commit, và ta chưa tải commit đó xuống vì ta chưa hề chạy lệnh `git fetch`."
|
||||
|
@ -815,7 +815,7 @@ exports.level = {
|
|||
"type": "GitDemonstrationView",
|
||||
"options": {
|
||||
"beforeMarkdowns": [
|
||||
"Privzeto delovanje `fakeTeamwork` je, da samo doda commit na master:"
|
||||
"Privzeto delovanje `fakeTeamwork` je, da samo doda commit na main:"
|
||||
],
|
||||
"afterMarkdowns": [
|
||||
"Tako -- oddaljen repo je bil posodobljen z novim commitom, katerega še nismo potegnili k sebi, ker še nismo pognali ukaza `git fetch`."
|
||||
|
|
|
@ -60,7 +60,7 @@ exports.level = {
|
|||
"Before getting into the details of `git fetch`, let's see it in action! Here we have a remote repository that contains two commits that our local repository does not have."
|
||||
],
|
||||
"afterMarkdowns": [
|
||||
"There we go! Commits `C2` and `C3` were downloaded to our local repository, and our remote branch `o/master` was updated to reflect this."
|
||||
"There we go! Commits `C2` and `C3` were downloaded to our local repository, and our remote branch `o/main` was updated to reflect this."
|
||||
],
|
||||
"command": "git fetch",
|
||||
"beforeCommand": "git clone; git fakeTeamwork 2"
|
||||
|
@ -75,7 +75,7 @@ exports.level = {
|
|||
"`git fetch` performs two main steps, and two main steps only. It:",
|
||||
"",
|
||||
"* downloads the commits that the remote has but are missing from our local repository, and...",
|
||||
"* updates where our remote branches point (for instance, `o/master`)",
|
||||
"* updates where our remote branches point (for instance, `o/main`)",
|
||||
"",
|
||||
"`git fetch` essentially brings our _local_ representation of the remote repository into synchronization with what the _actual_ remote repository looks like (right now).",
|
||||
"",
|
||||
|
@ -133,7 +133,7 @@ exports.level = {
|
|||
"Avant d'aller dans les détails de `git fetch`, voyons-le en action ! Ici nous avons un dépôt distant qui contient deux commits que notre dépôt local n'a pas."
|
||||
],
|
||||
"afterMarkdowns": [
|
||||
"Voilà ! Les commits `C2` et `C3` ont été téléchargés dans notre dépôt local, et notre branche distante `o/master` a été mise à jour pour refléter cela."
|
||||
"Voilà ! Les commits `C2` et `C3` ont été téléchargés dans notre dépôt local, et notre branche distante `o/main` a été mise à jour pour refléter cela."
|
||||
],
|
||||
"command": "git fetch",
|
||||
"beforeCommand": "git clone; git fakeTeamwork 2"
|
||||
|
@ -148,7 +148,7 @@ exports.level = {
|
|||
"`git fetch` procède en deux étapes principales, ni plus ni moins. Cela :",
|
||||
"",
|
||||
"* télécharge les commits que le dépôt distant possède mais qui ne sont pas dans le nôtre, puis...",
|
||||
"* met à jour nos branches distantes (par exemple, `o/master`).",
|
||||
"* met à jour nos branches distantes (par exemple, `o/main`).",
|
||||
"",
|
||||
"`git fetch` prend en fait notre représentation _locale_ du dépôt distant pour la synchroniser avec ce à quoi le dépôt distant ressemble _réellement_ (à ce moment-là).",
|
||||
"",
|
||||
|
@ -206,7 +206,7 @@ exports.level = {
|
|||
"Antes de entrar en los detalles de `git fetch`, veámoslo en acción. Acá tenemos un repositorio remoto que contiene dos commits que nuestro repositorio local no tiene."
|
||||
],
|
||||
"afterMarkdowns": [
|
||||
"¡Ahí vamos! Bajamos los commits `C2` y `C3` a nuestro repositorio local, y nuestra rama remota `o/master` fue actualizada para reflejar este cambio."
|
||||
"¡Ahí vamos! Bajamos los commits `C2` y `C3` a nuestro repositorio local, y nuestra rama remota `o/main` fue actualizada para reflejar este cambio."
|
||||
],
|
||||
"command": "git fetch",
|
||||
"beforeCommand": "git clone; git fakeTeamwork 2"
|
||||
|
@ -221,7 +221,7 @@ exports.level = {
|
|||
"`git fetch` hace dos simples pasos, y sólo dos simples pasos:",
|
||||
"",
|
||||
"* baja los commits que el remoto tiene pero no están en nuestro repositorio local, y...",
|
||||
"* actualiza a dónde apuntan nuestras ramas remotas (por ejemplo, `o/master`)",
|
||||
"* actualiza a dónde apuntan nuestras ramas remotas (por ejemplo, `o/main`)",
|
||||
"",
|
||||
"`git fetch` esencialmente sincroniza nuestra representación _local_ del repositorio remoto con el _verdadero_ estado del repositorio remoto (en este momento).",
|
||||
"",
|
||||
|
@ -279,7 +279,7 @@ exports.level = {
|
|||
"Antes de entrar en los detalles de `git fetch`, veámoslo en acción. Aquí tenemos un repositorio remoto que contiene dos commits que nuestro repositorio local no tiene."
|
||||
],
|
||||
"afterMarkdowns": [
|
||||
"¡Allá vamos! Bajamos los commits `C2` y `C3` a nuestro repositorio local, y nuestra rama remota `o/master` fue actualizada para reflejar este cambio."
|
||||
"¡Allá vamos! Bajamos los commits `C2` y `C3` a nuestro repositorio local, y nuestra rama remota `o/main` fue actualizada para reflejar este cambio."
|
||||
],
|
||||
"command": "git fetch",
|
||||
"beforeCommand": "git clone; git fakeTeamwork 2"
|
||||
|
@ -294,7 +294,7 @@ exports.level = {
|
|||
"`git fetch` hace dos simples pasos, y sólo dos simples pasos:",
|
||||
"",
|
||||
"* baja los commits que el remoto tiene pero no están en nuestro repositorio local, y...",
|
||||
"* actualiza a dónde apuntan nuestras ramas remotas (por ejemplo, `o/master`)",
|
||||
"* actualiza a dónde apuntan nuestras ramas remotas (por ejemplo, `o/main`)",
|
||||
"",
|
||||
"`git fetch` escencialmente sincroniza nuestra representación _local_ del repositorio remoto con el _verdadero_ estado del repositorio remoto (en este momento).",
|
||||
"",
|
||||
|
@ -352,7 +352,7 @@ exports.level = {
|
|||
"Antes de entrar nos detalhes do `git fetch`, vejamo-no em ação! Aqui temos um repositório remoto que contém dois commits que nosso repositório local não possui."
|
||||
],
|
||||
"afterMarkdowns": [
|
||||
"Lá vamos nós! Os commits `C2` e `C3` foram baixados para o nosso repositório local, e nosso ramo remoto `o/master` foi atualizado para refletir esse fato."
|
||||
"Lá vamos nós! Os commits `C2` e `C3` foram baixados para o nosso repositório local, e nosso ramo remoto `o/main` foi atualizado para refletir esse fato."
|
||||
],
|
||||
"command": "git fetch",
|
||||
"beforeCommand": "git clone; git fakeTeamwork 2"
|
||||
|
@ -367,7 +367,7 @@ exports.level = {
|
|||
"O `git fetch` realiza dois passos principais, e somente estes dois passos principais. Ele:",
|
||||
"",
|
||||
"* Baixa os commits que o repositório remoto possui mas que estão faltando no repositório local, e...",
|
||||
"* Atualiza a referência para a qual os ramos remotos (por exemplo, `o/master`) estão apontando",
|
||||
"* Atualiza a referência para a qual os ramos remotos (por exemplo, `o/main`) estão apontando",
|
||||
"",
|
||||
"O `git fetch` essencialmente faz com que nossa representação _local_ do repositório remoto fique sincronizada com a forma com que o repositório remoto _de fato_ se parece (naquele momento).",
|
||||
"",
|
||||
|
@ -425,7 +425,7 @@ exports.level = {
|
|||
"Ántes de entrar nos detalles de `git fetch`, vexámolo en acción! Aquí temos un repositorio remoto que contén dous commits que o noso repositorio local non ten."
|
||||
],
|
||||
"afterMarkdowns": [
|
||||
"Alá imos! Os commits `C2` e `C3` baixáronse ó noso repositorio local, e a nosa rama `o/master` actualizouse para reflexar ese cambio."
|
||||
"Alá imos! Os commits `C2` e `C3` baixáronse ó noso repositorio local, e a nosa rama `o/main` actualizouse para reflexar ese cambio."
|
||||
],
|
||||
"command": "git fetch",
|
||||
"beforeCommand": "git clone; git fakeTeamwork 2"
|
||||
|
@ -440,7 +440,7 @@ exports.level = {
|
|||
"`git fetch` fai dous pasos pasos principais, e soamente estes dous pasos princpipais. Son:",
|
||||
"",
|
||||
"* Baixa os commits que o repositório remoto contén pero non temos nos no noso repositoiro local, e...",
|
||||
"* Actualiza a referencia nas ramas remotas (por exemplo, `o/master`) nas que se está apuntando",
|
||||
"* Actualiza a referencia nas ramas remotas (por exemplo, `o/main`) nas que se está apuntando",
|
||||
"",
|
||||
"`git fetch` esencialmente fai que a nosa representación _local_ do repositorio remoto se sincronice ca forma que posúe o repositorio remoto, _de feito_ parecese (nese momento).",
|
||||
"",
|
||||
|
@ -498,7 +498,7 @@ exports.level = {
|
|||
"在講到 `git fetch` 的細節之前,我們要先來看一下例子!在這裡我們有一個新增了兩個 commit 的 remote repository,而且我們的 local repository 並沒有包含這兩個 commit。"
|
||||
],
|
||||
"afterMarkdowns": [
|
||||
"看吧!commit `C2` 以及 `C3` 已經被下載到我們的 local repository,而且我們的 remote branch `o/master` 也更新了。"
|
||||
"看吧!commit `C2` 以及 `C3` 已經被下載到我們的 local repository,而且我們的 remote branch `o/main` 也更新了。"
|
||||
],
|
||||
"command": "git fetch",
|
||||
"beforeCommand": "git clone; git fakeTeamwork 2"
|
||||
|
@ -513,7 +513,7 @@ exports.level = {
|
|||
"`git fetch` 只有執行了兩個主要步驟,包含:",
|
||||
"",
|
||||
"* 下載 remote 有的 commit,但是在我們的 local repository 是沒有該 commit。還有...",
|
||||
"* 更新我們 remote branch 所指向的地方(例如, `o/master`)",
|
||||
"* 更新我們 remote branch 所指向的地方(例如, `o/main`)",
|
||||
"",
|
||||
"基本上,`git fetch` 同步了我們的 local repository 以及 remote repository 的最新狀態。",
|
||||
"",
|
||||
|
@ -571,7 +571,7 @@ exports.level = {
|
|||
"在解释 `git fetch` 前,我们先看看实例。这里我们有一个远程仓库, 它有两个我们本地仓库中没有的提交。"
|
||||
],
|
||||
"afterMarkdowns": [
|
||||
"就是这样了! `C2`,`C3` 被下载到了本地仓库,同时远程分支 `o/master` 也被更新,反映到了这一变化"
|
||||
"就是这样了! `C2`,`C3` 被下载到了本地仓库,同时远程分支 `o/main` 也被更新,反映到了这一变化"
|
||||
],
|
||||
"command": "git fetch",
|
||||
"beforeCommand": "git clone; git fakeTeamwork 2"
|
||||
|
@ -586,7 +586,7 @@ exports.level = {
|
|||
"`git fetch` 完成了仅有的但是很重要的两步:",
|
||||
"",
|
||||
"* 从远程仓库下载本地仓库中缺失的提交记录",
|
||||
"* 更新远程分支指针(如 `o/master`)",
|
||||
"* 更新远程分支指针(如 `o/main`)",
|
||||
"",
|
||||
"`git fetch` 实际上将本地仓库中的远程分支更新成了远程仓库相应分支最新的状态。",
|
||||
"",
|
||||
|
@ -644,7 +644,7 @@ exports.level = {
|
|||
"Bevor wir uns die Einzelheiten von `git fetch` ansehen wollen wir es mal in Aktion sehen. Wir haben hier ein entferntes Repository, das zwei Commits hat, die in unserem lokalen Repository fehlen."
|
||||
],
|
||||
"afterMarkdowns": [
|
||||
"Das war's! Die Commits `C2` und `C3` wurden zu unserem Repository heruntergeladen und unser Remote Branch `o/master` wurde aktualisiert."
|
||||
"Das war's! Die Commits `C2` und `C3` wurden zu unserem Repository heruntergeladen und unser Remote Branch `o/main` wurde aktualisiert."
|
||||
],
|
||||
"command": "git fetch",
|
||||
"beforeCommand": "git clone; git fakeTeamwork 2"
|
||||
|
@ -659,7 +659,7 @@ exports.level = {
|
|||
"`git fetch` führt genau zwei Schritte aus:",
|
||||
"",
|
||||
"* Es lädt die Commits herunter, die im lokalen Repository fehlen, und ...",
|
||||
"* aktualisiert die Remote Branches wo nötig (zum Beispiel `o/master`).",
|
||||
"* aktualisiert die Remote Branches wo nötig (zum Beispiel `o/main`).",
|
||||
"",
|
||||
"`git fetch` synchronisiert im Prinzip unsere _lokale_ Abbildung des entfernten Repositorys mit dem, wie das entfernte Repository _tatsächlich_ aussieht (in diesem Moment).",
|
||||
"",
|
||||
|
@ -717,7 +717,7 @@ exports.level = {
|
|||
"`git fetch`の説明に入る前に、その動作を見てみましょう。ここに、ローカルリポジトリにない二個のコミットを含んでいるリモートブランチがあります。"
|
||||
],
|
||||
"afterMarkdowns": [
|
||||
"やりました!`C2`、`C3`コミットがローカルリポジトリにダウンロードされ、`o/master`リモートブランチに反映されました。"
|
||||
"やりました!`C2`、`C3`コミットがローカルリポジトリにダウンロードされ、`o/main`リモートブランチに反映されました。"
|
||||
],
|
||||
"command": "git fetch",
|
||||
"beforeCommand": "git clone; git fakeTeamwork 2"
|
||||
|
@ -732,7 +732,7 @@ exports.level = {
|
|||
"`git fetch`は、主に二つのステップだけで動作します。それは以下のようなものです:",
|
||||
"",
|
||||
"* リモートにあってローカルリポジトリにないコミットをダウンロードする",
|
||||
"* リモートブランチの位置を更新する(例えば、`o/master`)",
|
||||
"* リモートブランチの位置を更新する(例えば、`o/main`)",
|
||||
"",
|
||||
"`git fetch`は本質的には、_実際_のリモートリポジトリと同じように見えるような形でリモートリポジトリの_ローカル_の情報に同期します(ちょうど今のように)。",
|
||||
"",
|
||||
|
@ -790,7 +790,7 @@ exports.level = {
|
|||
"Прежде чем углубляться в детали команды `git fetch`, давайте взглянем на её визуализацию в действии! Здесь у нас имеется удалённый репозиторий, который содержит в себе два коммита, отсутствующих в нашем локальном репозитории."
|
||||
],
|
||||
"afterMarkdowns": [
|
||||
"Вот и всё! Коммиты `C2` и `C3` были успешно скачаны в наш локальный репозиторий, и наша удалённая ветка `o/master` отобразила эти изменения соответствующим образом."
|
||||
"Вот и всё! Коммиты `C2` и `C3` были успешно скачаны в наш локальный репозиторий, и наша удалённая ветка `o/main` отобразила эти изменения соответствующим образом."
|
||||
],
|
||||
"command": "git fetch",
|
||||
"beforeCommand": "git clone; git fakeTeamwork 2"
|
||||
|
@ -805,7 +805,7 @@ exports.level = {
|
|||
"`git fetch` выполняет две и только две основные операции. А именно:",
|
||||
"",
|
||||
"* связывается с указанным удалённым репозиторием и забирает все те данные проекта, которых у вас ещё нет, при этом...",
|
||||
"* у вас должны появиться ссылки на все ветки из этого удалённого репозитория (например, `o/master`)",
|
||||
"* у вас должны появиться ссылки на все ветки из этого удалённого репозитория (например, `o/main`)",
|
||||
"",
|
||||
"Фактически, `git fetch` синхронизирует _локальное_ представление удалённых репозиториев с тем, что является _актуальным_ на текущий момент времени.",
|
||||
"",
|
||||
|
@ -863,7 +863,7 @@ exports.level = {
|
|||
"Перед тим, як почати розбиратися з `git fetch`, спробуймо його в дії! Тут ми маємо віддалений репозиторій, що містить два коміти, яких немає в нашому локальному сховищі."
|
||||
],
|
||||
"afterMarkdowns": [
|
||||
"Ось, маєш! Коміти `C2` та `C3` було завантажено до нашого локального сховища й наша віддалена гілка `o/master` була відповідно оновлена."
|
||||
"Ось, маєш! Коміти `C2` та `C3` було завантажено до нашого локального сховища й наша віддалена гілка `o/main` була відповідно оновлена."
|
||||
],
|
||||
"command": "git fetch",
|
||||
"beforeCommand": "git clone; git fakeTeamwork 2"
|
||||
|
@ -878,7 +878,7 @@ exports.level = {
|
|||
"`git fetch` виконує дві основні дії, і тільки дві дії. Він:",
|
||||
"",
|
||||
"* звантажує коміти, які містить віддалене сховище, але яких немає в локальному сховищі, та...",
|
||||
"* оновлює посилання віддаленого бранчу (наприклад, `o/master`)",
|
||||
"* оновлює посилання віддаленого бранчу (наприклад, `o/main`)",
|
||||
"",
|
||||
"Якщо коротко, `git fetch` приводить репрезентацію віддаленого репозиторію в локальному сховищі до _актуального_ стану справжнього віддаленого репозиторію.",
|
||||
"",
|
||||
|
@ -936,7 +936,7 @@ exports.level = {
|
|||
"`git fetch`의 세부사항을 알아보기 전에 일단 눈으로 먼저 확인해 봅시다! 여기 로컬 저장소에는 없는 두개의 커밋이 있는 원격 저장소가 있습니다."
|
||||
],
|
||||
"afterMarkdowns": [
|
||||
"됐습니다! 커밋 `C2` 와 `C3`가 우리의 로컬 저장소로 다운로드 되었고, 원격 브랜치 `o/master`가 이것을 반영하기 위해 업데이트 되었습니다."
|
||||
"됐습니다! 커밋 `C2` 와 `C3`가 우리의 로컬 저장소로 다운로드 되었고, 원격 브랜치 `o/main`가 이것을 반영하기 위해 업데이트 되었습니다."
|
||||
],
|
||||
"command": "git fetch",
|
||||
"beforeCommand": "git clone; git fakeTeamwork 2"
|
||||
|
@ -951,7 +951,7 @@ exports.level = {
|
|||
"`git fetch`는 두가지의 중요한 단계를 수행합니다. 사실 이 두 단계만을 진행합니다. 그것은 :",
|
||||
"",
|
||||
"* 원격 저장소에는 있지만 로컬에는 없는 커밋들을 다운로드 받습니다. 그리고... ",
|
||||
"* 우리의 원격 브랜치가 가리키는곳을 업데이트합니다 (예를들어, `o/master`)",
|
||||
"* 우리의 원격 브랜치가 가리키는곳을 업데이트합니다 (예를들어, `o/main`)",
|
||||
"",
|
||||
"`git fetch`는 본질적으로 _로컬_에서 나타내는 원격 저장소의 상태를 _실제_ 원격 저장소의 (지금)상태와 동기화합니다.",
|
||||
"",
|
||||
|
@ -1009,7 +1009,7 @@ exports.level = {
|
|||
"Trước khi đi vào chi tiết về `git fetch`, hãy xem cách nó hoạt động! Ở đây ta có một kho chứa từ xa trong đó chứa 2 commit mà kho chứa địa phương của ta không có."
|
||||
],
|
||||
"afterMarkdowns": [
|
||||
"Đó! Commit `C2` và `C3` đã được tải xuống kho chứa cục bộ của ta, và nhánh từ xa `o/master` của ta đã được cập nhật để phản ánh điều này."
|
||||
"Đó! Commit `C2` và `C3` đã được tải xuống kho chứa cục bộ của ta, và nhánh từ xa `o/main` của ta đã được cập nhật để phản ánh điều này."
|
||||
],
|
||||
"command": "git fetch",
|
||||
"beforeCommand": "git clone; git fakeTeamwork 2"
|
||||
|
@ -1024,7 +1024,7 @@ exports.level = {
|
|||
"`git fetch` thực hiện 2 bước chính, và chỉ 2 bước chính. Nó:",
|
||||
"",
|
||||
"* tải xuống commit có trên kho chứa từ xa mà kho chứa cục bộ của ta không có, và...",
|
||||
"* cập nhật nơi mà nhánh từ xa của ta trỏ tới (ví dụ nhánh `o/master`)",
|
||||
"* cập nhật nơi mà nhánh từ xa của ta trỏ tới (ví dụ nhánh `o/main`)",
|
||||
"",
|
||||
"Về căn bản thì `git fetch` đưa đại diện _địa phương_ của kho chứa từ xa của ta về trạng thái đồng bộ với trạng thái _thực tế_ của kho chứa từ xa (ngay lúc này).",
|
||||
"",
|
||||
|
@ -1082,7 +1082,7 @@ exports.level = {
|
|||
"Preden se spustimo v podrobnosti `git fetch` ga poglejmo v akciji! Tu imamo oddaljen repozitorij, ki vsebuje dva commita, ki jih naš lokalen repozitorij nima."
|
||||
],
|
||||
"afterMarkdowns": [
|
||||
"Tako! Commita `C2` in `C3` sta bila prenesena v naš lokalen repozitorij in naš oddaljen branch `o/master` je bil posodobljen, da to odraža."
|
||||
"Tako! Commita `C2` in `C3` sta bila prenesena v naš lokalen repozitorij in naš oddaljen branch `o/main` je bil posodobljen, da to odraža."
|
||||
],
|
||||
"command": "git fetch",
|
||||
"beforeCommand": "git clone; git fakeTeamwork 2"
|
||||
|
@ -1097,7 +1097,7 @@ exports.level = {
|
|||
"`git fetch` naredi dve stvari. In sicer:",
|
||||
"",
|
||||
"* prenese commite, ki jih ima oddaljeni repo ampak manjkajo v našem lokalnem in ...",
|
||||
"* posodobi, kam kaže naš oddaljeni branch (naprimer `o/master`)",
|
||||
"* posodobi, kam kaže naš oddaljeni branch (naprimer `o/main`)",
|
||||
"",
|
||||
"`git fetch` v bistvu našo lokalno predstavitev oddaljenega repozitorija uskladi z dejanskim stanjem na oddaljenem repozitoriju.",
|
||||
"",
|
||||
|
|
|
@ -145,7 +145,7 @@ exports.level = {
|
|||
"Pretty simple, but worth going over just once."
|
||||
],
|
||||
"command": "git fetch",
|
||||
"beforeCommand": "git branch foo; git clone; git fakeTeamwork foo; git fakeTeamwork master"
|
||||
"beforeCommand": "git branch foo; git clone; git fakeTeamwork foo; git fakeTeamwork main"
|
||||
}
|
||||
},
|
||||
{
|
||||
|
@ -268,7 +268,7 @@ exports.level = {
|
|||
"Assez simple, mais ce n'était pas inutile de voir en action."
|
||||
],
|
||||
"command": "git fetch",
|
||||
"beforeCommand": "git branch foo; git clone; git fakeTeamwork foo; git fakeTeamwork master"
|
||||
"beforeCommand": "git branch foo; git clone; git fakeTeamwork foo; git fakeTeamwork main"
|
||||
}
|
||||
},
|
||||
{
|
||||
|
@ -391,7 +391,7 @@ exports.level = {
|
|||
"Bastante simple, pero vale la pena verlo al menos una vez."
|
||||
],
|
||||
"command": "git fetch",
|
||||
"beforeCommand": "git branch foo; git clone; git fakeTeamwork foo; git fakeTeamwork master"
|
||||
"beforeCommand": "git branch foo; git clone; git fakeTeamwork foo; git fakeTeamwork main"
|
||||
}
|
||||
},
|
||||
{
|
||||
|
@ -514,7 +514,7 @@ exports.level = {
|
|||
"Bastante simple, pero merece la pena verlo al menos una vez."
|
||||
],
|
||||
"command": "git fetch",
|
||||
"beforeCommand": "git branch foo; git clone; git fakeTeamwork foo; git fakeTeamwork master"
|
||||
"beforeCommand": "git branch foo; git clone; git fakeTeamwork foo; git fakeTeamwork main"
|
||||
}
|
||||
},
|
||||
{
|
||||
|
@ -637,7 +637,7 @@ exports.level = {
|
|||
"Bastante simples, mas importante de rever ao menos uma vez."
|
||||
],
|
||||
"command": "git fetch",
|
||||
"beforeCommand": "git branch foo; git clone; git fakeTeamwork foo; git fakeTeamwork master"
|
||||
"beforeCommand": "git branch foo; git clone; git fakeTeamwork foo; git fakeTeamwork main"
|
||||
}
|
||||
},
|
||||
{
|
||||
|
@ -760,7 +760,7 @@ exports.level = {
|
|||
"Moi sinxelo, pero vale a pena velo ó menos unha vez."
|
||||
],
|
||||
"command": "git fetch",
|
||||
"beforeCommand": "git branch foo; git clone; git fakeTeamwork foo; git fakeTeamwork master"
|
||||
"beforeCommand": "git branch foo; git clone; git fakeTeamwork foo; git fakeTeamwork main"
|
||||
}
|
||||
},
|
||||
{
|
||||
|
@ -883,7 +883,7 @@ exports.level = {
|
|||
"超簡單,但是所有的更新只做一次,很值得。"
|
||||
],
|
||||
"command": "git fetch",
|
||||
"beforeCommand": "git branch foo; git clone; git fakeTeamwork foo; git fakeTeamwork master"
|
||||
"beforeCommand": "git branch foo; git clone; git fakeTeamwork foo; git fakeTeamwork main"
|
||||
}
|
||||
},
|
||||
{
|
||||
|
@ -1006,7 +1006,7 @@ exports.level = {
|
|||
"相当简单,但是仅需更新一次,值得你去做!"
|
||||
],
|
||||
"command": "git fetch",
|
||||
"beforeCommand": "git branch foo; git clone; git fakeTeamwork foo; git fakeTeamwork master"
|
||||
"beforeCommand": "git branch foo; git clone; git fakeTeamwork foo; git fakeTeamwork main"
|
||||
}
|
||||
},
|
||||
{
|
||||
|
@ -1129,7 +1129,7 @@ exports.level = {
|
|||
"Ziemlich einfach, aber man sollte es mal gesehen haben."
|
||||
],
|
||||
"command": "git fetch",
|
||||
"beforeCommand": "git branch foo; git clone; git fakeTeamwork foo; git fakeTeamwork master"
|
||||
"beforeCommand": "git branch foo; git clone; git fakeTeamwork foo; git fakeTeamwork main"
|
||||
}
|
||||
},
|
||||
{
|
||||
|
@ -1252,7 +1252,7 @@ exports.level = {
|
|||
"Достаточно просто, после того как мы пережили все эти технические тонкости."
|
||||
],
|
||||
"command": "git fetch",
|
||||
"beforeCommand": "git branch foo; git clone; git fakeTeamwork foo; git fakeTeamwork master"
|
||||
"beforeCommand": "git branch foo; git clone; git fakeTeamwork foo; git fakeTeamwork main"
|
||||
}
|
||||
},
|
||||
{
|
||||
|
@ -1375,7 +1375,7 @@ exports.level = {
|
|||
"간단하지만, 짚고 넘어갑시다."
|
||||
],
|
||||
"command": "git fetch",
|
||||
"beforeCommand": "git branch foo; git clone; git fakeTeamwork foo; git fakeTeamwork master"
|
||||
"beforeCommand": "git branch foo; git clone; git fakeTeamwork foo; git fakeTeamwork main"
|
||||
}
|
||||
},
|
||||
{
|
||||
|
@ -1498,7 +1498,7 @@ exports.level = {
|
|||
"Все дуже просто, але варто було згадати ще раз."
|
||||
],
|
||||
"command": "git fetch",
|
||||
"beforeCommand": "git branch foo; git clone; git fakeTeamwork foo; git fakeTeamwork master"
|
||||
"beforeCommand": "git branch foo; git clone; git fakeTeamwork foo; git fakeTeamwork main"
|
||||
}
|
||||
},
|
||||
{
|
||||
|
@ -1621,7 +1621,7 @@ exports.level = {
|
|||
"Khá là đơn giản, nhưng mà cũng nên xem qua thử."
|
||||
],
|
||||
"command": "git fetch",
|
||||
"beforeCommand": "git branch foo; git clone; git fakeTeamwork foo; git fakeTeamwork master"
|
||||
"beforeCommand": "git branch foo; git clone; git fakeTeamwork foo; git fakeTeamwork main"
|
||||
}
|
||||
},
|
||||
{
|
||||
|
@ -1744,7 +1744,7 @@ exports.level = {
|
|||
"Precej enostavno, ampak vredno, da gremo čez vsaj enkrat."
|
||||
],
|
||||
"command": "git fetch",
|
||||
"beforeCommand": "git branch foo; git clone; git fakeTeamwork foo; git fakeTeamwork master"
|
||||
"beforeCommand": "git branch foo; git clone; git fakeTeamwork foo; git fakeTeamwork main"
|
||||
}
|
||||
},
|
||||
{
|
||||
|
|
|
@ -96,7 +96,7 @@ exports.level = {
|
|||
"afterMarkdowns": [
|
||||
"Boom! We updated our local representation of the remote with `git fetch`, rebased our work to reflect the new changes in the remote, and then pushed them with `git push`."
|
||||
],
|
||||
"command": "git fetch; git rebase o/master; git push",
|
||||
"command": "git fetch; git rebase o/main; git push",
|
||||
"beforeCommand": "git clone; git fakeTeamwork; git commit"
|
||||
}
|
||||
},
|
||||
|
@ -121,7 +121,7 @@ exports.level = {
|
|||
"afterMarkdowns": [
|
||||
"Boom! We updated our local representation of the remote with `git fetch`, *merged* the new work into our work (to reflect the new changes in the remote), and then pushed them with `git push`."
|
||||
],
|
||||
"command": "git fetch; git merge o/master; git push",
|
||||
"command": "git fetch; git merge o/main; git push",
|
||||
"beforeCommand": "git clone; git fakeTeamwork; git commit"
|
||||
}
|
||||
},
|
||||
|
@ -239,7 +239,7 @@ exports.level = {
|
|||
"afterMarkdowns": [
|
||||
"Boum ! Nous avons mis à jour notre représentation locale du dépôt avec `git fetch`, rebasé notre travail pour refléter les nouveaux changements, et enfin les avons envoyés avec `git push`."
|
||||
],
|
||||
"command": "git fetch; git rebase o/master; git push",
|
||||
"command": "git fetch; git rebase o/main; git push",
|
||||
"beforeCommand": "git clone; git fakeTeamwork; git commit"
|
||||
}
|
||||
},
|
||||
|
@ -264,7 +264,7 @@ exports.level = {
|
|||
"afterMarkdowns": [
|
||||
"Boum ! Nous avons mis à jour notre représentation locale du dépôt distant avec `git fetch`, *fusionné* les nouveaux commits dans notre copie de travail (pour refléter les nouveaux changements du dépôt distant), et les avons ensuite envoyés avec `git push`."
|
||||
],
|
||||
"command": "git fetch; git merge o/master; git push",
|
||||
"command": "git fetch; git merge o/main; git push",
|
||||
"beforeCommand": "git clone; git fakeTeamwork; git commit"
|
||||
}
|
||||
},
|
||||
|
@ -382,7 +382,7 @@ exports.level = {
|
|||
"afterMarkdowns": [
|
||||
"¡Boom! Actualizamos nuestra representación local del remoto con `git fetch`, rebaseamos nuestro trabajo para reflejar los nuevos cambios del remoto, y después los pusheamos con `git push`."
|
||||
],
|
||||
"command": "git fetch; git rebase o/master; git push",
|
||||
"command": "git fetch; git rebase o/main; git push",
|
||||
"beforeCommand": "git clone; git fakeTeamwork; git commit"
|
||||
}
|
||||
},
|
||||
|
@ -407,7 +407,7 @@ exports.level = {
|
|||
"afterMarkdowns": [
|
||||
"¡Boom! Actualizamos nuestra representación local del remoto usando `git fetch`, *mergeamos* el nuevo trabajo junto con el nuestro (para reflejar los nuevos cambios en el remoto), y después los pusheamos usando `git push`."
|
||||
],
|
||||
"command": "git fetch; git merge o/master; git push",
|
||||
"command": "git fetch; git merge o/main; git push",
|
||||
"beforeCommand": "git clone; git fakeTeamwork; git commit"
|
||||
}
|
||||
},
|
||||
|
@ -525,7 +525,7 @@ exports.level = {
|
|||
"afterMarkdowns": [
|
||||
"¡Zas! Actualizamos nuestra representación local del remoto con `git fetch`, hacemos rebase de nuestro trabajo para reflejar los nuevos cambios del remoto, y después los subimos con `git push`."
|
||||
],
|
||||
"command": "git fetch; git rebase o/master; git push",
|
||||
"command": "git fetch; git rebase o/main; git push",
|
||||
"beforeCommand": "git clone; git fakeTeamwork; git commit"
|
||||
}
|
||||
},
|
||||
|
@ -550,7 +550,7 @@ exports.level = {
|
|||
"afterMarkdowns": [
|
||||
"¡Zas! Actualizamos nuestra representación local del remoto usando `git fetch`, *mergeamos* el nuevo trabajo junto con el nuestro (para reflejar los nuevos cambios en el remoto), y después los subimos usando `git push`."
|
||||
],
|
||||
"command": "git fetch; git merge o/master; git push",
|
||||
"command": "git fetch; git merge o/main; git push",
|
||||
"beforeCommand": "git clone; git fakeTeamwork; git commit"
|
||||
}
|
||||
},
|
||||
|
@ -668,7 +668,7 @@ exports.level = {
|
|||
"afterMarkdowns": [
|
||||
"Boom! Nós atualizamos a representação local do repositório remoto com `git fetch`, fizemos rebase do nosso trabalho para refletir as novas mudanças no repositório remoto, e então enviamos nossas mudanças com `git push`."
|
||||
],
|
||||
"command": "git fetch; git rebase o/master; git push",
|
||||
"command": "git fetch; git rebase o/main; git push",
|
||||
"beforeCommand": "git clone; git fakeTeamwork; git commit"
|
||||
}
|
||||
},
|
||||
|
@ -693,7 +693,7 @@ exports.level = {
|
|||
"afterMarkdowns": [
|
||||
"Boom! Atualizamos nossa representação local do repositório remoto com `git fetch`, fizemos *merge* do novo trabalho com o nosso (para refletir as novas mudanças no repositório remoto), e então fizemos push deles com `git push`."
|
||||
],
|
||||
"command": "git fetch; git merge o/master; git push",
|
||||
"command": "git fetch; git merge o/main; git push",
|
||||
"beforeCommand": "git clone; git fakeTeamwork; git commit"
|
||||
}
|
||||
},
|
||||
|
@ -812,7 +812,7 @@ exports.level = {
|
|||
"afterMarkdowns": [
|
||||
"¡Boom! Actualizamos a nosa representación local do remoto con `git fetch`, rebasamos o noso traballo para reflexar os novos cambios do remoto, e despois os empurramos con `git push`."
|
||||
],
|
||||
"command": "git fetch; git rebase o/master; git push",
|
||||
"command": "git fetch; git rebase o/main; git push",
|
||||
"beforeCommand": "git clone; git fakeTeamwork; git commit"
|
||||
}
|
||||
},
|
||||
|
@ -837,7 +837,7 @@ exports.level = {
|
|||
"afterMarkdowns": [
|
||||
"¡Boom! Actualizamos a nosa representación local do remoto usando `git fetch`, *mesturamos* ou *mergeamos* o novo traballo xunto co noso (para reflexar os novos cambios no remoto), e despois os empurramos empregando `git push`."
|
||||
],
|
||||
"command": "git fetch; git merge o/master; git push",
|
||||
"command": "git fetch; git merge o/main; git push",
|
||||
"beforeCommand": "git clone; git fakeTeamwork; git commit"
|
||||
}
|
||||
},
|
||||
|
@ -955,7 +955,7 @@ exports.level = {
|
|||
"afterMarkdowns": [
|
||||
"看吧!我們利用 `git fetch` 下載了 remote 上面的 commit,並且 rebase 我們的 commit,使得我們的 commit 可以接在 remote 上面最新的版本的後面,接著透過 `git push` 就可以上傳更新了。"
|
||||
],
|
||||
"command": "git fetch; git rebase o/master; git push",
|
||||
"command": "git fetch; git rebase o/main; git push",
|
||||
"beforeCommand": "git clone; git fakeTeamwork; git commit"
|
||||
}
|
||||
},
|
||||
|
@ -980,7 +980,7 @@ exports.level = {
|
|||
"afterMarkdowns": [
|
||||
"看吧!我們藉由 `git fetch` 把 remote 上的 commit 下載下來,並且 *merged* 該 commit 到我們目前的 branch(這樣就表示我們產生的 merge commit 有包含了 remote 上的 commit),接著再透過 `git push` 上傳到 remote。"
|
||||
],
|
||||
"command": "git fetch; git merge o/master; git push",
|
||||
"command": "git fetch; git merge o/main; git push",
|
||||
"beforeCommand": "git clone; git fakeTeamwork; git commit"
|
||||
}
|
||||
},
|
||||
|
@ -1098,7 +1098,7 @@ exports.level = {
|
|||
"afterMarkdowns": [
|
||||
"我们用 `git fetch` 更新了本地仓库中的远程分支,然后用 rebase 将我们的工作移动到最新的提交记录下,最后再用 `git push` 推送到远程仓库。"
|
||||
],
|
||||
"command": "git fetch; git rebase o/master; git push",
|
||||
"command": "git fetch; git rebase o/main; git push",
|
||||
"beforeCommand": "git clone; git fakeTeamwork; git commit"
|
||||
}
|
||||
},
|
||||
|
@ -1123,7 +1123,7 @@ exports.level = {
|
|||
"afterMarkdowns": [
|
||||
"我们用 `git fetch` 更新了本地仓库中的远程分支,然后**合并**了新变更到我们的本地分支(为了包含远程仓库的变更),最后我们用 `git push` 把工作推送到远程仓库"
|
||||
],
|
||||
"command": "git fetch; git merge o/master; git push",
|
||||
"command": "git fetch; git merge o/main; git push",
|
||||
"beforeCommand": "git clone; git fakeTeamwork; git commit"
|
||||
}
|
||||
},
|
||||
|
@ -1241,7 +1241,7 @@ exports.level = {
|
|||
"afterMarkdowns": [
|
||||
"Bämm! Wir haben unsere lokale Abbildung des entfernten Repositorys mit `git fetch` auf den neuesten Stand gebracht, unsere Arbeit auf die neueste Version des Remotes drauf gepackt und dann mit `git push` auf den Server geschoben."
|
||||
],
|
||||
"command": "git fetch; git rebase o/master; git push",
|
||||
"command": "git fetch; git rebase o/main; git push",
|
||||
"beforeCommand": "git clone; git fakeTeamwork; git commit"
|
||||
}
|
||||
},
|
||||
|
@ -1266,7 +1266,7 @@ exports.level = {
|
|||
"afterMarkdowns": [
|
||||
"Ok. Wir haben die lokale Abbildung des entfernen Repositorys mit `git fetch` aktualisiert, die neuen Änderungen per *Merge* in deine integriert, und letztere dann mit `git push` auf den Server gebracht."
|
||||
],
|
||||
"command": "git fetch; git merge o/master; git push",
|
||||
"command": "git fetch; git merge o/main; git push",
|
||||
"beforeCommand": "git clone; git fakeTeamwork; git commit"
|
||||
}
|
||||
},
|
||||
|
@ -1384,7 +1384,7 @@ exports.level = {
|
|||
"afterMarkdowns": [
|
||||
"Опа! Мы только что обновили наш локальный образ удалённого репозитория средствами `git fetch`. Ещё мы перебазировали наши наработки, чтобы они отражали все изменения с удалённого репозитория, и опубликовали их с помощью `git push`."
|
||||
],
|
||||
"command": "git fetch; git rebase o/master; git push",
|
||||
"command": "git fetch; git rebase o/main; git push",
|
||||
"beforeCommand": "git clone; git fakeTeamwork; git commit"
|
||||
}
|
||||
},
|
||||
|
@ -1409,7 +1409,7 @@ exports.level = {
|
|||
"afterMarkdowns": [
|
||||
"Опа! Мы обновили наше локальное представление удалённого репозитория с помощью `git fetch`, *объединили* ваши новые наработки с нашими наработками (чтобы отразить изменения в удалённом репозитории) и затем опубликовали их с помощью `git push`."
|
||||
],
|
||||
"command": "git fetch; git merge o/master; git push",
|
||||
"command": "git fetch; git merge o/main; git push",
|
||||
"beforeCommand": "git clone; git fakeTeamwork; git commit"
|
||||
}
|
||||
},
|
||||
|
@ -1527,7 +1527,7 @@ exports.level = {
|
|||
"afterMarkdowns": [
|
||||
"わお!私たちは`git fetch`でローカルのリモートブランチを更新し、私たちの作業をリベースさせてリモートの新しい変更に適用させ、`git push`でそれをプッシュしました。"
|
||||
],
|
||||
"command": "git fetch; git rebase o/master; git push",
|
||||
"command": "git fetch; git rebase o/main; git push",
|
||||
"beforeCommand": "git clone; git fakeTeamwork; git commit"
|
||||
}
|
||||
},
|
||||
|
@ -1552,7 +1552,7 @@ exports.level = {
|
|||
"afterMarkdowns": [
|
||||
"わお!私たちは`git fetch`でローカルのリモートブランチを更新し、私たちの作業を*マージ*して(リモートの新しい変更を反映するために)、`git push`でそれをプッシュしました。"
|
||||
],
|
||||
"command": "git fetch; git merge o/master; git push",
|
||||
"command": "git fetch; git merge o/main; git push",
|
||||
"beforeCommand": "git clone; git fakeTeamwork; git commit"
|
||||
}
|
||||
},
|
||||
|
@ -1670,7 +1670,7 @@ exports.level = {
|
|||
"afterMarkdowns": [
|
||||
"Ка-бум! Ми оновили наш локальний образ віддаленого репозиторію за допомогою `git fetch`, заребейсили наші напрацювання відповідно до змін у віддаленому репо, й завантажили їх за допомогою `git push`."
|
||||
],
|
||||
"command": "git fetch; git rebase o/master; git push",
|
||||
"command": "git fetch; git rebase o/main; git push",
|
||||
"beforeCommand": "git clone; git fakeTeamwork; git commit"
|
||||
}
|
||||
},
|
||||
|
@ -1695,7 +1695,7 @@ exports.level = {
|
|||
"afterMarkdowns": [
|
||||
"Ка-бум! Ми оновили наш локальний образ віддаленої гілки за допомогою `git fetch`, *змерджили* нові напрацювання з власними (щоб відобразити останні зміни у віддаленій гілці), й відіслали їх за допомогою `git push`."
|
||||
],
|
||||
"command": "git fetch; git merge o/master; git push",
|
||||
"command": "git fetch; git merge o/main; git push",
|
||||
"beforeCommand": "git clone; git fakeTeamwork; git commit"
|
||||
}
|
||||
},
|
||||
|
@ -1813,7 +1813,7 @@ exports.level = {
|
|||
"afterMarkdowns": [
|
||||
"Boom! `git fetch`로 원격 저장소의 변경정보를 가져오고, 새 변경들로 우리 작업을 리베이스 했습니다, 이제 `git push`하면 끝!"
|
||||
],
|
||||
"command": "git fetch; git rebase o/master; git push",
|
||||
"command": "git fetch; git rebase o/main; git push",
|
||||
"beforeCommand": "git clone; git fakeTeamwork; git commit"
|
||||
}
|
||||
},
|
||||
|
@ -1838,7 +1838,7 @@ exports.level = {
|
|||
"afterMarkdowns": [
|
||||
"Boom! `git fetch`로 원격 저장소의 변경정보를 가져오고, 새 작업을 우리 작업으로 *병합*했습니다 (원격 저장소의 변경을 반영하기 위해서죠), 이제 `git push`하면 끝!"
|
||||
],
|
||||
"command": "git fetch; git merge o/master; git push",
|
||||
"command": "git fetch; git merge o/main; git push",
|
||||
"beforeCommand": "git clone; git fakeTeamwork; git commit"
|
||||
}
|
||||
},
|
||||
|
@ -1956,7 +1956,7 @@ exports.level = {
|
|||
"afterMarkdowns": [
|
||||
"Bùùm! Ta đã cập nhật nhánh từ xa trong kho chứ cục bộ với `git fetch`, dịch chuyển thành quả của mình để phản ánh thay đổi mới của kho chứa từ xa, sau đó đẩy chúng lên với `git push`."
|
||||
],
|
||||
"command": "git fetch; git rebase o/master; git push",
|
||||
"command": "git fetch; git rebase o/main; git push",
|
||||
"beforeCommand": "git clone; git fakeTeamwork; git commit"
|
||||
}
|
||||
},
|
||||
|
@ -1981,7 +1981,7 @@ exports.level = {
|
|||
"afterMarkdowns": [
|
||||
"Bùùm! Ta đã cập nhật đại diện nhánh từ xa tại kho chứa địa phương với `git fetch`, *hợp nhất* (*merge*) thành quả mới vào thành quả của ta (để phản ánh thay đổi ở nhánh từ xa), sau đó đẩy chúng lên với `git push`."
|
||||
],
|
||||
"command": "git fetch; git merge o/master; git push",
|
||||
"command": "git fetch; git merge o/main; git push",
|
||||
"beforeCommand": "git clone; git fakeTeamwork; git commit"
|
||||
}
|
||||
},
|
||||
|
@ -2099,7 +2099,7 @@ exports.level = {
|
|||
"afterMarkdowns": [
|
||||
"Boom! Posodobili smo našo lokalno reprezentacijo oddaljenega repozitorija z `git fetch`, rebaseali naše delo, da vsebuje nove spremembe iz oddaljenega repota, nato pa naložili svoje delo z `git push`."
|
||||
],
|
||||
"command": "git fetch; git rebase o/master; git push",
|
||||
"command": "git fetch; git rebase o/main; git push",
|
||||
"beforeCommand": "git clone; git fakeTeamwork; git commit"
|
||||
}
|
||||
},
|
||||
|
@ -2124,7 +2124,7 @@ exports.level = {
|
|||
"afterMarkdowns": [
|
||||
"Boom! Posodobili smo našo lokalno sliko oddaljenega repozitorija z `git fetch`, *zmergali* novo delo v naše delo (kot odraz novih sprememb na oddaljenem branchu) in jih nato naložili z `git push`."
|
||||
],
|
||||
"command": "git fetch; git merge o/master; git push",
|
||||
"command": "git fetch; git merge o/main; git push",
|
||||
"beforeCommand": "git clone; git fakeTeamwork; git commit"
|
||||
}
|
||||
},
|
||||
|
|
|
@ -3,23 +3,23 @@ exports.level = {
|
|||
"solutionCommand": "git reset --hard o/master;git checkout -b feature C2; git push origin feature",
|
||||
"startTree": "{\"branches\":{\"master\":{\"target\":\"C2\",\"id\":\"master\",\"remoteTrackingBranchID\":\"o/master\"},\"o/master\":{\"target\":\"C1\",\"id\":\"o/master\",\"remoteTrackingBranchID\":null}},\"commits\":{\"C0\":{\"parents\":[],\"id\":\"C0\",\"rootCommit\":true},\"C1\":{\"parents\":[\"C0\"],\"id\":\"C1\"},\"C2\":{\"parents\":[\"C1\"],\"id\":\"C2\"}},\"tags\":{},\"HEAD\":{\"target\":\"master\",\"id\":\"HEAD\"},\"originTree\":{\"branches\":{\"master\":{\"target\":\"C1\",\"id\":\"master\",\"remoteTrackingBranchID\":null}},\"commits\":{\"C0\":{\"parents\":[],\"id\":\"C0\",\"rootCommit\":true},\"C1\":{\"parents\":[\"C0\"],\"id\":\"C1\"}},\"tags\":{},\"HEAD\":{\"target\":\"master\",\"id\":\"HEAD\"}}}",
|
||||
"hint": {
|
||||
"en_US": "Make the feature branch from the local master before resetting it back to be the same as origin's master",
|
||||
"de_DE": "Erstelle einen Feature-Branch ausgehend vom lokalen Master-Branch, bevor du den Master-Branch auf den origin/master zurücksetzt.",
|
||||
"ru_RU": "Создайте новую feature ветвь от master перед тем, как откатить изменения в master до состояния o/master.",
|
||||
"uk": "Створіть нову feature гілку від локального master перед тим, як відкотити зміни в master до стану o/master.",
|
||||
"en_US": "Make the feature branch from the local main before resetting it back to be the same as origin's main",
|
||||
"de_DE": "Erstelle einen Feature-Branch ausgehend vom lokalen Master-Branch, bevor du den Master-Branch auf den origin/main zurücksetzt.",
|
||||
"ru_RU": "Создайте новую feature ветвь от main перед тем, как откатить изменения в main до состояния o/main.",
|
||||
"uk": "Створіть нову feature гілку від локального main перед тим, як відкотити зміни в main до стану o/main.",
|
||||
"zh_CN": "从本地的master创建一个feature分支, 然后重置master和origin master保持一致。",
|
||||
"es_ES": "Crea la rama feature desde la rama master en local antes de restablecerlo para que sea el mismo que la rama master de origen",
|
||||
"pt_BR": "Crie o ramo feature a partir do ramo master no local antes de reestabelecê-lo para que seja o mesmo que o ramo master de origem",
|
||||
"fr_FR": "Créer la branche feature à partir du master local, avant de la restaurer dans le même état que o/master",
|
||||
"ko" : "로컬 저장소의 master 브랜치로부터 feature 브랜치를 만드세요. 그리고 o/master와 같아질 수 있도록 로컬 저장소의 master 브랜치를 reset 하세요.",
|
||||
"sl_SI": "Naredi feature branch iz lokalnega masterja preden ga ponastaviš, da bo enak kot origin master.",
|
||||
"es_AR": "Crea la rama feature desde la rama master en local antes de restablecerlo para que sea el mismo que la rama master de origen."
|
||||
"es_ES": "Crea la rama feature desde la rama main en local antes de restablecerlo para que sea el mismo que la rama main de origen",
|
||||
"pt_BR": "Crie o ramo feature a partir do ramo main no local antes de reestabelecê-lo para que seja o mesmo que o ramo main de origem",
|
||||
"fr_FR": "Créer la branche feature à partir du main local, avant de la restaurer dans le même état que o/main",
|
||||
"ko" : "로컬 저장소의 main 브랜치로부터 feature 브랜치를 만드세요. 그리고 o/master와 같아질 수 있도록 로컬 저장소의 main 브랜치를 reset 하세요.",
|
||||
"sl_SI": "Naredi feature branch iz lokalnega masterja preden ga ponastaviš, da bo enak kot origin main.",
|
||||
"es_AR": "Crea la rama feature desde la rama main en local antes de restablecerlo para que sea el mismo que la rama main de origen."
|
||||
},
|
||||
"name": {
|
||||
"en_US": "Locked Master",
|
||||
"de_DE": "Gesperrter Master-Branch",
|
||||
"ru_RU": "Заблокированная ветвь master",
|
||||
"uk": "Заблокована гілка master",
|
||||
"ru_RU": "Заблокированная ветвь main",
|
||||
"uk": "Заблокована гілка main",
|
||||
"zh_CN": "锁定的Master(Locked Master)",
|
||||
"es_ES": "Master bloqueado",
|
||||
"pt_BR": "Master bloqueado",
|
||||
|
@ -37,10 +37,10 @@ exports.level = {
|
|||
"markdowns": [
|
||||
"## Remote Rejected!",
|
||||
"",
|
||||
"If you work on a large collaborative team its likely that master is locked and requires some Pull Request process to merge changes. If you commit directly to master locally and try pushing you will be greeted with a message similar to this:",
|
||||
"If you work on a large collaborative team its likely that main is locked and requires some Pull Request process to merge changes. If you commit directly to main locally and try pushing you will be greeted with a message similar to this:",
|
||||
"",
|
||||
"```",
|
||||
" ! [remote rejected] master -> master (TF402455: Pushes to this branch are not permitted; you must use a pull request to update this branch.)",
|
||||
" ! [remote rejected] main -> main (TF402455: Pushes to this branch are not permitted; you must use a pull request to update this branch.)",
|
||||
"```"
|
||||
]
|
||||
}
|
||||
|
@ -51,9 +51,9 @@ exports.level = {
|
|||
"markdowns": [
|
||||
"## Why was it rejected?",
|
||||
"",
|
||||
"The remote rejected the push of commits directly to master because of the policy on master requiring pull requests to instead be used.",
|
||||
"The remote rejected the push of commits directly to main because of the policy on main requiring pull requests to instead be used.",
|
||||
"",
|
||||
"You meant to follow the process creating a branch then pushing that branch and doing a pull request, but you forgot and committed directly to master. Now you are stuck and cannot push your changes."
|
||||
"You meant to follow the process creating a branch then pushing that branch and doing a pull request, but you forgot and committed directly to main. Now you are stuck and cannot push your changes."
|
||||
]
|
||||
}
|
||||
},
|
||||
|
@ -63,7 +63,7 @@ exports.level = {
|
|||
"markdowns": [
|
||||
"## The solution",
|
||||
"",
|
||||
"Create another branch called feature and push that to the remote. Also reset your master back to be in sync with the remote otherwise you may have issues next time you do a pull and someone else's commit conflicts with yours."
|
||||
"Create another branch called feature and push that to the remote. Also reset your main back to be in sync with the remote otherwise you may have issues next time you do a pull and someone else's commit conflicts with yours."
|
||||
]
|
||||
}
|
||||
}
|
||||
|
@ -80,7 +80,7 @@ exports.level = {
|
|||
"Wenn du in einem großen Team zusammen arbeitest, ist der Master-Branch mit hoher Wahrscheinlichkeit für direkte Änderungen gesperrt. Um Änderungen am Remote-Branch einpflegen zu können, ist ein Pull-Request-Prozess notwendig. Wenn du lokal in deinem Master-Branch einen Commit durchführst und diesen versuchst auf den serverseitigen Master-Branch zu pushen, wirst du folgende Fehlermeldung bekommen:",
|
||||
"",
|
||||
"```",
|
||||
" ! [remote rejected] master -> master (TF402455: Pushes to this branch are not permitted; you must use a pull request to update this branch.)",
|
||||
" ! [remote rejected] main -> main (TF402455: Pushes to this branch are not permitted; you must use a pull request to update this branch.)",
|
||||
"```"
|
||||
]
|
||||
}
|
||||
|
@ -120,7 +120,7 @@ exports.level = {
|
|||
"如果你是在一个大的合作团队中工作, 很可能是master被锁定了, 需要一些Pull Request流程来合并修改。如果你直接提交(commit)到本地master, 然后试图推送(push)修改, 你将会收到这样类似的信息:",
|
||||
"",
|
||||
"```",
|
||||
" ! [远程服务器拒绝] master -> master (TF402455: 不允许推送(push)这个分支; 你必须使用pull request来更新这个分支.)",
|
||||
" ! [远程服务器拒绝] main -> main (TF402455: 不允许推送(push)这个分支; 你必须使用pull request来更新这个分支.)",
|
||||
"```"
|
||||
]
|
||||
}
|
||||
|
@ -160,11 +160,11 @@ exports.level = {
|
|||
"Когда вы работаете в составе большой команды разработчиков над проектом, то, вероятнее всего, ветвь `main` будет _заблокирована_. Для внесения изменений в неё в git существует понятие запроса на слияние `Pull Request`. В такой ситуации если вы закоммитите свои наработки непосредственно в `main` ветвь, а после выполните `git push`, то будет сгенерировано сообщение об ошибке:",
|
||||
"",
|
||||
"```",
|
||||
" ! [remote rejected] master -> master (TF402455: Pushes to this branch are not permitted; you must use a pull request to update this branch.)",
|
||||
" ! [remote rejected] main -> main (TF402455: Pushes to this branch are not permitted; you must use a pull request to update this branch.)",
|
||||
"```",
|
||||
"",
|
||||
"```",
|
||||
" ! [удалённо отклонено] master -> master (TF402455: Изменение этой ветви запрещены; вы можете использовать pull request для обновления этой ветви.)",
|
||||
" ! [удалённо отклонено] main -> main (TF402455: Изменение этой ветви запрещены; вы можете использовать pull request для обновления этой ветви.)",
|
||||
"```"
|
||||
]
|
||||
}
|
||||
|
@ -204,11 +204,11 @@ exports.level = {
|
|||
"Коли ви працюєте над проектом в складі великої команди розробників, то, швидше за все, гілка `main` буде _заблокована_. Для внесення до неї змін в git існує поняття запиту на злиття `Pull Request`. В такій ситуації, якщо ви закомітите свої зміни безпосередньо в гілку `main`, а потім виконаєте `git push`, то буде згенероване повідомлення про помилку:",
|
||||
"",
|
||||
"```",
|
||||
" ! [remote rejected] master -> master (TF402455: Pushes to this branch are not permitted; you must use a pull request to update this branch.)",
|
||||
" ! [remote rejected] main -> main (TF402455: Pushes to this branch are not permitted; you must use a pull request to update this branch.)",
|
||||
"```",
|
||||
"",
|
||||
"```",
|
||||
" ! [віддалено відхилено] master -> master (TF402455: Зміни (push-запити) цієї гілки заборонені; ви повинні використовувати pull-запит для оновлення цієї гілки.)",
|
||||
" ! [віддалено відхилено] main -> main (TF402455: Зміни (push-запити) цієї гілки заборонені; ви повинні використовувати pull-запит для оновлення цієї гілки.)",
|
||||
"```"
|
||||
]
|
||||
}
|
||||
|
@ -249,7 +249,7 @@ exports.level = {
|
|||
"Si trabajas en un equipo colaborativo, es probable que la rama `main` esté bloqueada y requiera algún proceso de `Pull Request` para poder `mergear` los cambios. Si haces `commit` directamente a `main` e intentas realizar `push`, recibirás un mensaje similar a este:",
|
||||
"",
|
||||
"```",
|
||||
" ! [remote rejected] master -> master (TF402455: Pushes to this branch are not permitted; you must use a pull request to update this branch.)",
|
||||
" ! [remote rejected] main -> main (TF402455: Pushes to this branch are not permitted; you must use a pull request to update this branch.)",
|
||||
"```"
|
||||
]
|
||||
}
|
||||
|
@ -287,10 +287,10 @@ exports.level = {
|
|||
"markdowns": [
|
||||
"## Remote Rejected!",
|
||||
"",
|
||||
"Se você trabalha em uma grande equipe colaborativa é provável que o master seja bloqueado e precise de alguns processos de Pull Request para unir mudanças. Se você commitar diretamente para o master localmente e tentar fazer um push você visualizará uma mensagem similar a essa:",
|
||||
"Se você trabalha em uma grande equipe colaborativa é provável que o main seja bloqueado e precise de alguns processos de Pull Request para unir mudanças. Se você commitar diretamente para o main localmente e tentar fazer um push você visualizará uma mensagem similar a essa:",
|
||||
"",
|
||||
"```",
|
||||
" ! [remote rejected] master -> master (TF402455: Pushes to this branch are not permitted; you must use a pull request to update this branch.)",
|
||||
" ! [remote rejected] main -> main (TF402455: Pushes to this branch are not permitted; you must use a pull request to update this branch.)",
|
||||
"```"
|
||||
]
|
||||
}
|
||||
|
@ -301,9 +301,9 @@ exports.level = {
|
|||
"markdowns": [
|
||||
"## Por que foi rejeitado?",
|
||||
"",
|
||||
"O repositório remoto rejeitou o push dos commits diretamente para o master por causa da política do master necessitando do uso dos pull requests.",
|
||||
"O repositório remoto rejeitou o push dos commits diretamente para o main por causa da política do main necessitando do uso dos pull requests.",
|
||||
"",
|
||||
"Você pretendia seguir o processo de criação de uma ramificação, fazendo um push dessa ramificação e fazendo um pull request, mas você esqueceu e commitou diretamente para o master. Agora você está preso e não consegue publicar suas mudanças."
|
||||
"Você pretendia seguir o processo de criação de uma ramificação, fazendo um push dessa ramificação e fazendo um pull request, mas você esqueceu e commitou diretamente para o main. Agora você está preso e não consegue publicar suas mudanças."
|
||||
]
|
||||
}
|
||||
},
|
||||
|
@ -313,7 +313,7 @@ exports.level = {
|
|||
"markdowns": [
|
||||
"## A solução",
|
||||
"",
|
||||
"Crie outro branch chamado feature e faça um push dele para o repositório remoto. Além disso, resete o master de volta a estar sincronizado com o repositório remoto para não ter problemas da próxima vez que fizer um pull e os commits de alguém mais conflitarem com o seu."
|
||||
"Crie outro branch chamado feature e faça um push dele para o repositório remoto. Além disso, resete o main de volta a estar sincronizado com o repositório remoto para não ter problemas da próxima vez que fizer um pull e os commits de alguém mais conflitarem com o seu."
|
||||
]
|
||||
}
|
||||
}
|
||||
|
@ -327,10 +327,10 @@ exports.level = {
|
|||
"markdowns": [
|
||||
"## Remote Rejected!",
|
||||
"",
|
||||
"Si vous travaillez dans une équipe de grande taille, il est probable que `main` soit verrouillée, et que le mécanisme de `Pull Request` soit nécessaire pour `merge` des changements. Si vous faites un `commit` directement sur le master local, et essayez de `push`, vous serez reçu avec un message de la sorte :",
|
||||
"Si vous travaillez dans une équipe de grande taille, il est probable que `main` soit verrouillée, et que le mécanisme de `Pull Request` soit nécessaire pour `merge` des changements. Si vous faites un `commit` directement sur le main local, et essayez de `push`, vous serez reçu avec un message de la sorte :",
|
||||
"",
|
||||
"```",
|
||||
" ! [remote rejected] master -> master (TF402455: Pushes to this branch are not permitted; you must use a pull request to update this branch.)",
|
||||
" ! [remote rejected] main -> main (TF402455: Pushes to this branch are not permitted; you must use a pull request to update this branch.)",
|
||||
"```"
|
||||
]
|
||||
}
|
||||
|
@ -370,7 +370,7 @@ exports.level = {
|
|||
"규모가 큰 개발팀에서 일하는 경우, 보통 원격저장소의 `main` 브랜치는 잠겨있습니다(locked). 그래서 변경사항을 적용하려면 pull request 과정을 거쳐야하죠. 만약에 여러분이 로컬 저장소의 `main`브랜치에서 커밋을 한 후 `push`하려고 시도한다면, 다음과 같은 오류를 받게 될겁니다. :",
|
||||
"",
|
||||
"```",
|
||||
" ! [remote rejected] master -> master (TF402455: Pushes to this branch are not permitted; you must use a pull request to update this branch.)",
|
||||
" ! [remote rejected] main -> main (TF402455: Pushes to this branch are not permitted; you must use a pull request to update this branch.)",
|
||||
"```"
|
||||
]
|
||||
}
|
||||
|
@ -410,7 +410,7 @@ exports.level = {
|
|||
"Si trabajas en un equipo colaborativo, es probable que la rama `main` esté bloqueada y requiera algún proceso de `Pull Request` para poder `mergear` los cambios. Si haces `commit` directamente a `main` e intentas realizar `push`, recibirás un mensaje similar a este:",
|
||||
"",
|
||||
"```",
|
||||
" ! [remote rejected] master -> master (TF402455: Pushes to this branch are not permitted; you must use a pull request to update this branch.)",
|
||||
" ! [remote rejected] main -> main (TF402455: Pushes to this branch are not permitted; you must use a pull request to update this branch.)",
|
||||
"```"
|
||||
]
|
||||
}
|
||||
|
@ -448,10 +448,10 @@ exports.level = {
|
|||
"markdowns": [
|
||||
"## Oddaljena Zavrnitev!",
|
||||
"",
|
||||
"Če delaš v veliki ekipi je verjetno, da je master zaklenjen in zahteva Pull Request postopek za merganje sprememb. Če commitaš direktno na master lokalno, poizkusi pushati in dobil boš sporočilo podobno temu:",
|
||||
"Če delaš v veliki ekipi je verjetno, da je main zaklenjen in zahteva Pull Request postopek za merganje sprememb. Če commitaš direktno na main lokalno, poizkusi pushati in dobil boš sporočilo podobno temu:",
|
||||
"",
|
||||
"```",
|
||||
" ! [remote rejected] master -> master (TF402455: Pushes to this branch are not permitted; you must use a pull request to update this branch.)",
|
||||
" ! [remote rejected] main -> main (TF402455: Pushes to this branch are not permitted; you must use a pull request to update this branch.)",
|
||||
"```"
|
||||
]
|
||||
}
|
||||
|
@ -462,9 +462,9 @@ exports.level = {
|
|||
"markdowns": [
|
||||
"## Zakaj je bil zavrnjen?",
|
||||
"",
|
||||
"Oddaljen repo je zavrnil pushanje commitov direktno na master zaradi politike, da se uporabljajo le pull requesti.",
|
||||
"Oddaljen repo je zavrnil pushanje commitov direktno na main zaradi politike, da se uporabljajo le pull requesti.",
|
||||
"",
|
||||
"Mišljeno je, da slediš temu procesu, da narediš branch, ga pushaš, nato pa narediš pull request, ampak si pozabil in commital direktno na master. Sedaj si zataknjen in ne moreš pushati svojih sprememb."
|
||||
"Mišljeno je, da slediš temu procesu, da narediš branch, ga pushaš, nato pa narediš pull request, ampak si pozabil in commital direktno na main. Sedaj si zataknjen in ne moreš pushati svojih sprememb."
|
||||
]
|
||||
}
|
||||
},
|
||||
|
@ -474,7 +474,7 @@ exports.level = {
|
|||
"markdowns": [
|
||||
"## Rešitev",
|
||||
"",
|
||||
"Naredi še en branch imenovan feature in ga pushaj na remote. Prav tako resetiraj master nazaj, da bo v enakem stanju kot na oddaljenem repozitoriju, drugače imaš lahko težave naslednjič, ko boš pullal spremembe in bo konflikt s commitom nekoga drugega."
|
||||
"Naredi še en branch imenovan feature in ga pushaj na remote. Prav tako resetiraj main nazaj, da bo v enakem stanju kot na oddaljenem repozitoriju, drugače imaš lahko težave naslednjič, ko boš pullal spremembe in bo konflikt s commitom nekoga drugega."
|
||||
]
|
||||
}
|
||||
}
|
||||
|
|
|
@ -46,7 +46,7 @@ exports.level = {
|
|||
"markdowns": [
|
||||
"## Why not merge?",
|
||||
"",
|
||||
"In order to push new updates to the remote, all you need to do is *incorporate* the latest changes from the remote. That means you can either rebase *or* merge in the remote branch (e.g. `o/master`).",
|
||||
"In order to push new updates to the remote, all you need to do is *incorporate* the latest changes from the remote. That means you can either rebase *or* merge in the remote branch (e.g. `o/main`).",
|
||||
"",
|
||||
"So if you can do either method, why have the lessons focused on rebasing so far? Why is there no love for `merge` when working with remotes?",
|
||||
""
|
||||
|
@ -91,7 +91,7 @@ exports.level = {
|
|||
"markdowns": [
|
||||
"## Pourquoi pas merge ?",
|
||||
"",
|
||||
"Dans le but d'envoyer de nouvelles modifications sur le dépôt distant, la seule étape préliminaire est *d'incorporer* les derniers changements de ce dépôt dans le nôtre. Concrètement, vous pouvez faire un rebase *ou* un merge de la branche distante (c'est à dire de `o/master`).",
|
||||
"Dans le but d'envoyer de nouvelles modifications sur le dépôt distant, la seule étape préliminaire est *d'incorporer* les derniers changements de ce dépôt dans le nôtre. Concrètement, vous pouvez faire un rebase *ou* un merge de la branche distante (c'est à dire de `o/main`).",
|
||||
"",
|
||||
"Donc si l'on peut faire les deux méthodes, pourquoi les leçons se sont-elles concentrées sur rebase jusqu'à présent ? Pourquoi préfère-t-on souvent éviter `merge` lorsque l'on travaille avec les branches distantes ?",
|
||||
""
|
||||
|
@ -136,7 +136,7 @@ exports.level = {
|
|||
"markdowns": [
|
||||
"## ¿Por qué no mergear?",
|
||||
"",
|
||||
"Para pushear tus novedades al remoto, todo lo que tenés que hacer es *integrar* los últimos cambios del remoto con los tuyos. Eso significa que podés hacer tanto rebase como merge con la rama remota (por ejemplo, `o/master`).",
|
||||
"Para pushear tus novedades al remoto, todo lo que tenés que hacer es *integrar* los últimos cambios del remoto con los tuyos. Eso significa que podés hacer tanto rebase como merge con la rama remota (por ejemplo, `o/main`).",
|
||||
"",
|
||||
"Así que si podés hacer cualquiera de las dos, ¿por qué las lecciones sólo se centraron en rebasear hasta ahora? ¿Por qué no dedicarle algo de amor al `merge` cuando trabajamos con remotos?",
|
||||
""
|
||||
|
@ -181,7 +181,7 @@ exports.level = {
|
|||
"markdowns": [
|
||||
"## ¿Por qué no hacer merge?",
|
||||
"",
|
||||
"Para hacer push con tus novedades al remoto, todo lo que tienes que hacer es *integrar* los últimos cambios del remoto con los tuyos. Eso significa que puedes hacer tanto rebase como merge con la rama remota (por ejemplo, `o/master`).",
|
||||
"Para hacer push con tus novedades al remoto, todo lo que tienes que hacer es *integrar* los últimos cambios del remoto con los tuyos. Eso significa que puedes hacer tanto rebase como merge con la rama remota (por ejemplo, `o/main`).",
|
||||
"",
|
||||
"Así que si puedes hacer cualquiera de las dos, ¿por qué las lecciones sólo se han centrado en rebasear hasta ahora? ¿Por qué no dedicarle algo de amor al `merge` cuando trabajamos con remotos?",
|
||||
""
|
||||
|
@ -226,7 +226,7 @@ exports.level = {
|
|||
"markdowns": [
|
||||
"## Por que não um merge?",
|
||||
"",
|
||||
"Para enviar novas atualizações ao repositório remoto, tudo que você precisa é *incorporar* as últimas mudanças ali presentes. Isso significa que você pode tanto fazer um rebase *quanto* um merge no ramo remoto (ex. `o/master`).",
|
||||
"Para enviar novas atualizações ao repositório remoto, tudo que você precisa é *incorporar* as últimas mudanças ali presentes. Isso significa que você pode tanto fazer um rebase *quanto* um merge no ramo remoto (ex. `o/main`).",
|
||||
"",
|
||||
"Então, se você pode escolher qualquer um desses métodos, por que as lições focaram no rebase até o momento? Por que não demos nenhum amor ao `merge` quando trabalhamos com repositórios remotos?",
|
||||
""
|
||||
|
@ -271,7 +271,7 @@ exports.level = {
|
|||
"markdowns": [
|
||||
"## ¿Por qué non mesturar?",
|
||||
"",
|
||||
"Para empurrar as túas novidades ó remoto, todo o que tes que facer é *integrar* os últimos cambios do remoto cos teus. Eso significa que podes facer tanto rebase como merge ca rama remota (por exemplo, `o/master`).",
|
||||
"Para empurrar as túas novidades ó remoto, todo o que tes que facer é *integrar* os últimos cambios do remoto cos teus. Eso significa que podes facer tanto rebase como merge ca rama remota (por exemplo, `o/main`).",
|
||||
"",
|
||||
"Así que podes facer calquera das dúas, ¿por qué as leccións só se centraron en rebasar ata agora? ¿Por qué non adicarlle algo de amor ó `merge` cando traballamos con remotos?",
|
||||
""
|
||||
|
@ -316,7 +316,7 @@ exports.level = {
|
|||
"markdowns": [
|
||||
"## 為何不要 merge?",
|
||||
"",
|
||||
"為了要 push 新的 commit 給 remote,你只需要做的是先同步 remote 的更新,那就表示你可以使用 rebase *或者*是 merge remote branch (例如,`o/master`)。",
|
||||
"為了要 push 新的 commit 給 remote,你只需要做的是先同步 remote 的更新,那就表示你可以使用 rebase *或者*是 merge remote branch (例如,`o/main`)。",
|
||||
"",
|
||||
"所以假如你已經學會使用其中一個方式了,那為什麼我們到目前為止還在強調 `rebase`?為什麼當提到 remote 的時候,反而 `merge` 比較沒有受到關注?",
|
||||
""
|
||||
|
@ -361,7 +361,7 @@ exports.level = {
|
|||
"markdowns": [
|
||||
"## Warum nicht Merge?",
|
||||
"",
|
||||
"Um neue Dinge auf das Remote zu schieben musst du erst alle Änderungen vom Remote holen und bei dir integrieren. Das bedeutet du kannst den entfernten Branch (z.B. `o/master`) entweder Rebasen *oder* Mergen.",
|
||||
"Um neue Dinge auf das Remote zu schieben musst du erst alle Änderungen vom Remote holen und bei dir integrieren. Das bedeutet du kannst den entfernten Branch (z.B. `o/main`) entweder Rebasen *oder* Mergen.",
|
||||
"",
|
||||
"Wenn du also beide Methoden benutzen kannst, warum haben sich die Level bisher auf Rebase konzentriert? Warum mag keiner `merge` wenn es um Remotes geht?",
|
||||
""
|
||||
|
@ -406,7 +406,7 @@ exports.level = {
|
|||
"markdowns": [
|
||||
"## 为什么不用 merge 呢?",
|
||||
"",
|
||||
"为了 push 新变更到远程仓库,你要做的就是**包含**远程仓库中最新变更。意思就是只要你的本地分支包含了远程分支(如 `o/master`)中的最新变更就可以了,至于具体是用 rebase 还是 merge,并没有限制。",
|
||||
"为了 push 新变更到远程仓库,你要做的就是**包含**远程仓库中最新变更。意思就是只要你的本地分支包含了远程分支(如 `o/main`)中的最新变更就可以了,至于具体是用 rebase 还是 merge,并没有限制。",
|
||||
"",
|
||||
"那么既然没有规定限制,为何前面几节都在着重于 rebase 呢?为什么在操作远程分支时不喜欢用 `merge` 呢?",
|
||||
""
|
||||
|
@ -451,7 +451,7 @@ exports.level = {
|
|||
"markdowns": [
|
||||
"## なぜマージではいけないのか?",
|
||||
"",
|
||||
"新しい更新をリモートにプッシュするため、あなたがする必要があるのはリモートからの最近の変更の*組み込み*です。それは、リモートブランチ(例えば、`o/master`)にリベース*か*マージのどちらかをあなたがする必要があるということを意味します。",
|
||||
"新しい更新をリモートにプッシュするため、あなたがする必要があるのはリモートからの最近の変更の*組み込み*です。それは、リモートブランチ(例えば、`o/main`)にリベース*か*マージのどちらかをあなたがする必要があるということを意味します。",
|
||||
"",
|
||||
"もしどっちの方法でも行うことができるなら、なぜこれまでのレッスンでは、リベースに焦点を当ててきたのでしょう?リモートへの作業で、なぜ`merge`を推してこなかったのでしょうか?",
|
||||
""
|
||||
|
@ -496,7 +496,7 @@ exports.level = {
|
|||
"markdowns": [
|
||||
"## Merge? Нет, нет, спасибо.",
|
||||
"",
|
||||
"Чтобы закачать (push) новые изменения в удалённый репозиторий, всё, что вам нужно сделать - это *смешать* последние изменения из удалённого репозитория. Это значит, что вы можете выполнить rebase *или* merge на удалённом репозитории (например, `o/master`).",
|
||||
"Чтобы закачать (push) новые изменения в удалённый репозиторий, всё, что вам нужно сделать - это *смешать* последние изменения из удалённого репозитория. Это значит, что вы можете выполнить rebase *или* merge на удалённом репозитории (например, `o/main`).",
|
||||
"",
|
||||
"Если мы можем воспользоваться одним из двух методов, то почему же эти упражнения сфокусированы в основном на rebase? К чему такая нелюбовь к `merge`, когда речь идёт о работе с удалёнными репозиториями?",
|
||||
""
|
||||
|
@ -541,7 +541,7 @@ exports.level = {
|
|||
"markdowns": [
|
||||
"## 왜 merge하지 않는거죠?",
|
||||
"",
|
||||
"새로운 작업들을 원격 저장소로 push하기위해서 여러분은 원격 저장소의 최근 변경들을 *합치기*만 하면 됩니다. 이 말은 즉 원격 브랜치로(예:`o/master`) rebase를 할 수도 merge를 할 수도 있다는 것입니다.",
|
||||
"새로운 작업들을 원격 저장소로 push하기위해서 여러분은 원격 저장소의 최근 변경들을 *합치기*만 하면 됩니다. 이 말은 즉 원격 브랜치로(예:`o/main`) rebase를 할 수도 merge를 할 수도 있다는 것입니다.",
|
||||
"",
|
||||
"두가지를 다 할 수 있다면, 왜 지금까지 배운 레슨들은 rebase를 하는것에 집중한거죠? 원격 저장소와 작업을 할때는 왜 `merge`에게 관심을 가져주지 않는건가요?",
|
||||
""
|
||||
|
@ -586,7 +586,7 @@ exports.level = {
|
|||
"markdowns": [
|
||||
"## Чому б не змерджити?",
|
||||
"",
|
||||
"Для того, щоб віддалений сервер прийняв твої зміни, треба *об'єднати* їх з останніми змінами на сервері. Це означає ребейс *або* мердж з віддаленою гілкою (напр. `o/master`).",
|
||||
"Для того, щоб віддалений сервер прийняв твої зміни, треба *об'єднати* їх з останніми змінами на сервері. Це означає ребейс *або* мердж з віддаленою гілкою (напр. `o/main`).",
|
||||
"",
|
||||
"Хмм, якщо можна використати один із цих методів, для чого нам додаткові уроки про ребейс? Чому ніхто не любить `merge`, працюючи з віддаленим сервером?",
|
||||
""
|
||||
|
@ -631,7 +631,7 @@ exports.level = {
|
|||
"markdowns": [
|
||||
"## Tại sao không hợp nhất?",
|
||||
"",
|
||||
"Để có thể đẩy cập nhật của bạn lên kho nhánh từ xa, tất cả những gì bạn cần làm là *kết nạp* thay đổi mới nhất từ nhánh từ xa. Nghĩa là bạn có thể dùng tái bố trí *hoặc* hợp nhất với nhánh từ xa (ví dụ `o/master`).",
|
||||
"Để có thể đẩy cập nhật của bạn lên kho nhánh từ xa, tất cả những gì bạn cần làm là *kết nạp* thay đổi mới nhất từ nhánh từ xa. Nghĩa là bạn có thể dùng tái bố trí *hoặc* hợp nhất với nhánh từ xa (ví dụ `o/main`).",
|
||||
"",
|
||||
"Vậy ta có thể sử dụng một trong 2 cách, thì tại sao đến giờ ta chỉ tập trung vào tái bố trí trong các bài học? Tại sao khi làm việc với nhánh từ xa lại ta lại không thích `hợp nhất` (`merge`)?",
|
||||
""
|
||||
|
@ -676,7 +676,7 @@ exports.level = {
|
|||
"markdowns": [
|
||||
"## Zakaj ne merganje?",
|
||||
"",
|
||||
"Da bi poslal nove spremembe na oddaljen repo, je vse kar moraš narediti, da *vključiš* zadnje spremembe iz oddaljenega repota. To pomeni, da lahko rebaseaš *ali* mergeaš v oddaljeni branch (npr. `o/master`).",
|
||||
"Da bi poslal nove spremembe na oddaljen repo, je vse kar moraš narediti, da *vključiš* zadnje spremembe iz oddaljenega repota. To pomeni, da lahko rebaseaš *ali* mergeaš v oddaljeni branch (npr. `o/main`).",
|
||||
"",
|
||||
"Torej če lahko narediš katero izmed metod, zakaj imeti lekcijo, ki se zaenkrat osredotoča na rebaseanje? Zakaj ni nobene ljubezni do `mergea` pri delanju z oddaljenimi repoti?",
|
||||
""
|
||||
|
|
|
@ -49,9 +49,9 @@ exports.level = {
|
|||
"",
|
||||
"There are actually many ways to do this -- once you have new commits available locally, you can incorporate them as if they were just normal commits on other branches. This means you could execute commands like:",
|
||||
"",
|
||||
"* `git cherry-pick o/master`",
|
||||
"* `git rebase o/master`",
|
||||
"* `git merge o/master`",
|
||||
"* `git cherry-pick o/main`",
|
||||
"* `git rebase o/main`",
|
||||
"* `git merge o/main`",
|
||||
"* etc., etc.",
|
||||
"",
|
||||
"In fact, the workflow of *fetching* remote changes and then *merging* them is so common that git actually provides a command that does both at once! That command is `git pull`."
|
||||
|
@ -65,9 +65,9 @@ exports.level = {
|
|||
"Let's first see a `fetch` and a `merge` executed sequentially."
|
||||
],
|
||||
"afterMarkdowns": [
|
||||
"Boom -- we downloaded `C3` with a `fetch` and then merged in that work with `git merge o/master`. Now our `main` branch reflects the new work from the remote (in this case, named `origin`)"
|
||||
"Boom -- we downloaded `C3` with a `fetch` and then merged in that work with `git merge o/main`. Now our `main` branch reflects the new work from the remote (in this case, named `origin`)"
|
||||
],
|
||||
"command": "git fetch; git merge o/master",
|
||||
"command": "git fetch; git merge o/main",
|
||||
"beforeCommand": "git clone; git commit; git fakeTeamwork"
|
||||
}
|
||||
},
|
||||
|
@ -108,9 +108,9 @@ exports.level = {
|
|||
"",
|
||||
"Il existe en fait beaucoup de façons de faire cela -- une fois que vous avez de nouveaux commits disponibles localement, vous pouvez les incorporer dans votre branche de travail comme s'ils étaient des commits normaux d'autres branches. Cela signifie que pourriez simplement exécuter des commandes comme :",
|
||||
"",
|
||||
"* `git cherry-pick o/master`",
|
||||
"* `git rebase o/master`",
|
||||
"* `git merge o/master`",
|
||||
"* `git cherry-pick o/main`",
|
||||
"* `git rebase o/main`",
|
||||
"* `git merge o/main`",
|
||||
"* etc., etc.",
|
||||
"",
|
||||
"En fait, le principe de *rapatrier* (fetch) les branches distantes puis les *fusionner* (merge) est si commun que git a en réalité une commande pour faire les deux à la fois ! Cette commande est `git pull`."
|
||||
|
@ -124,9 +124,9 @@ exports.level = {
|
|||
"Voyons d'abord un `fetch` puis un `merge` exécutés séquentiellement."
|
||||
],
|
||||
"afterMarkdowns": [
|
||||
"Boum -- nous avons téléchargé `C3` avec un `fetch` et ensuite nous avons fusionné ce travail dans notre copie avec `git merge o/master`. Maintenant notre branche `main` reflète le nouveau travail du dépôt distant (dans ce cas, nommé `origin`)"
|
||||
"Boum -- nous avons téléchargé `C3` avec un `fetch` et ensuite nous avons fusionné ce travail dans notre copie avec `git merge o/main`. Maintenant notre branche `main` reflète le nouveau travail du dépôt distant (dans ce cas, nommé `origin`)"
|
||||
],
|
||||
"command": "git fetch; git merge o/master",
|
||||
"command": "git fetch; git merge o/main",
|
||||
"beforeCommand": "git clone; git commit; git fakeTeamwork"
|
||||
}
|
||||
},
|
||||
|
@ -167,9 +167,9 @@ exports.level = {
|
|||
"",
|
||||
"Realmente hay varias formas de hacer esto: una vez que tenés los commits disponibles localmente, podés integrarlos como si fueran commits comunes de otras ramas. Esto significa que podrías ejecutar comandos como:",
|
||||
"",
|
||||
"* `git cherry-pick o/master`",
|
||||
"* `git rebase o/master`",
|
||||
"* `git merge o/master`",
|
||||
"* `git cherry-pick o/main`",
|
||||
"* `git rebase o/main`",
|
||||
"* `git merge o/main`",
|
||||
"* etc., etc.",
|
||||
"",
|
||||
"De hecho, el flujo de trabajo de *fetchear* cambios remotos y después *mergearlos* es tan común que git incluye un comando que hace ambas cosas de una: ¡`git pull`!"
|
||||
|
@ -183,9 +183,9 @@ exports.level = {
|
|||
"Veamos primero un `fetch` y un `merge` ejecutados secuencialmente."
|
||||
],
|
||||
"afterMarkdowns": [
|
||||
"Boom: descargamos `C3` con un `fetch` y luego lo mergeamos con `git merge o/master`. Ahora nuestra rama `main` refleja el nuevo trabajo del remoto (en este caso, llamado `origin`)"
|
||||
"Boom: descargamos `C3` con un `fetch` y luego lo mergeamos con `git merge o/main`. Ahora nuestra rama `main` refleja el nuevo trabajo del remoto (en este caso, llamado `origin`)"
|
||||
],
|
||||
"command": "git fetch; git merge o/master",
|
||||
"command": "git fetch; git merge o/main",
|
||||
"beforeCommand": "git clone; git commit; git fakeTeamwork"
|
||||
}
|
||||
},
|
||||
|
@ -226,9 +226,9 @@ exports.level = {
|
|||
"",
|
||||
"Realmente hay varias formas de hacer esto: una vez que tienes los commits disponibles localmente, puedes integrarlos como si fueran commits comunes de otras ramas. Esto significa que podrías ejecutar comandos como:",
|
||||
"",
|
||||
"* `git cherry-pick o/master`",
|
||||
"* `git rebase o/master`",
|
||||
"* `git merge o/master`",
|
||||
"* `git cherry-pick o/main`",
|
||||
"* `git rebase o/main`",
|
||||
"* `git merge o/main`",
|
||||
"* etc., etc.",
|
||||
"",
|
||||
"De hecho, el flujo de trabajo de *fetchear* cambios remotos y después *mergearlos* es tan común que git incluye un comando que hace ambas cosas de una: ¡`git pull`!"
|
||||
|
@ -242,9 +242,9 @@ exports.level = {
|
|||
"Veamos primero un `fetch` y un `merge` ejecutados secuencialmente."
|
||||
],
|
||||
"afterMarkdowns": [
|
||||
"Zas: descargamos `C3` con un `fetch` y luego lo mergeamos con `git merge o/master`. Ahora nuestra rama `main` refleja el nuevo trabajo del remoto (en este caso, llamado `origin`)"
|
||||
"Zas: descargamos `C3` con un `fetch` y luego lo mergeamos con `git merge o/main`. Ahora nuestra rama `main` refleja el nuevo trabajo del remoto (en este caso, llamado `origin`)"
|
||||
],
|
||||
"command": "git fetch; git merge o/master",
|
||||
"command": "git fetch; git merge o/main",
|
||||
"beforeCommand": "git clone; git commit; git fakeTeamwork"
|
||||
}
|
||||
},
|
||||
|
@ -285,9 +285,9 @@ exports.level = {
|
|||
"",
|
||||
"Há, na verdade, muitas formas de fazê-lo -- uma vez que você tenha os novos commits disponíveis localmente, você pode incorporá-los como se eles fossem commits normais em outros ramos. Isso significa que você pode executar comandos como estes a seguir:",
|
||||
"",
|
||||
"* `git cherry-pick o/master`",
|
||||
"* `git rebase o/master`",
|
||||
"* `git merge o/master`",
|
||||
"* `git cherry-pick o/main`",
|
||||
"* `git rebase o/main`",
|
||||
"* `git merge o/main`",
|
||||
"* etc., etc.",
|
||||
"",
|
||||
"O fluxo de trabalho de executar *fetch* para baixar as mudanças remotas e depois fazer um *merge* delas é tão comum que o Git na verdade fornece um comando que faz ambas as coisas de uma vez só! Esse comando é o `git pull`."
|
||||
|
@ -301,9 +301,9 @@ exports.level = {
|
|||
"Vamos primeiro ver um `fetch` e um `merge` executados sequencialmente."
|
||||
],
|
||||
"afterMarkdowns": [
|
||||
"Boom -- nós baixamos o `C3` com um `fetch` e então fizemos um merge desse trabalho usando `git merge o/master`. Agora o nosso ramo `main` reflete o trabalho realizado no repositório remoto (neste caso, chamado de `origin`)"
|
||||
"Boom -- nós baixamos o `C3` com um `fetch` e então fizemos um merge desse trabalho usando `git merge o/main`. Agora o nosso ramo `main` reflete o trabalho realizado no repositório remoto (neste caso, chamado de `origin`)"
|
||||
],
|
||||
"command": "git fetch; git merge o/master",
|
||||
"command": "git fetch; git merge o/main",
|
||||
"beforeCommand": "git clone; git commit; git fakeTeamwork"
|
||||
}
|
||||
},
|
||||
|
@ -344,9 +344,9 @@ exports.level = {
|
|||
"",
|
||||
"Realmente hai varias formas de facer esto: unha vez que teñas os commits dispoñibles localmente, podes integralos coma se foran commits comúns de outras ramas. Esto significa que poderías executar comandos como:",
|
||||
"",
|
||||
"* `git cherry-pick o/master`",
|
||||
"* `git rebase o/master`",
|
||||
"* `git merge o/master`",
|
||||
"* `git cherry-pick o/main`",
|
||||
"* `git rebase o/main`",
|
||||
"* `git merge o/main`",
|
||||
"* etc., etc.",
|
||||
"",
|
||||
"De feito, o fluxo de traballo de *fetchear* os cambios remotos e depois *mesturalos* é tan común que git inclúe un comando que fai as dúas operacións nunha sola: ¡`giti pull`!"
|
||||
|
@ -360,9 +360,9 @@ exports.level = {
|
|||
"Vexamos primeiro un `fetch` e un `merge` executados secuencialmente."
|
||||
],
|
||||
"afterMarkdowns": [
|
||||
"Boom: descargamos `C3` cun `fetch` e logo mesturámolos con `git merge o/master`. Agora a nosa rama `main` reflexa o novo traballo do remoto (neste caso, chamado `origin`)"
|
||||
"Boom: descargamos `C3` cun `fetch` e logo mesturámolos con `git merge o/main`. Agora a nosa rama `main` reflexa o novo traballo do remoto (neste caso, chamado `origin`)"
|
||||
],
|
||||
"command": "git fetch; git merge o/master",
|
||||
"command": "git fetch; git merge o/main",
|
||||
"beforeCommand": "git clone; git commit; git fakeTeamwork"
|
||||
}
|
||||
},
|
||||
|
@ -403,9 +403,9 @@ exports.level = {
|
|||
"",
|
||||
"只要在你的 local 有 fetch 到新的 commit,便有很多方法可以做到這件事情,你可以把它們視為在其它 branch 上面的一般的 commit,這表示你可以執行像這樣子的指令:",
|
||||
"",
|
||||
"* `git cherry-pick o/master`",
|
||||
"* `git rebase o/master`",
|
||||
"* `git merge o/master`",
|
||||
"* `git cherry-pick o/main`",
|
||||
"* `git rebase o/main`",
|
||||
"* `git merge o/main`",
|
||||
"* 等等‧‧‧",
|
||||
"",
|
||||
"事實上,一次*下載 (fetch)* remote 的更新並且*合併(merge)* 這些更新在 git 裡面是很常見的事情!這個命令叫作 `git pull`。"
|
||||
|
@ -419,9 +419,9 @@ exports.level = {
|
|||
"讓我們來看循序執行一個 `fetch` 和一個 `merge` 的樣子"
|
||||
],
|
||||
"afterMarkdowns": [
|
||||
"看吧! 我們利用 `fetch` 下載了 `C3` 並且利用 `git merge o/master` 來更新資料,現在我們的 `main` branch 跟 remote 同步了(在這個例子中,remote repository 叫作 `origin`)。"
|
||||
"看吧! 我們利用 `fetch` 下載了 `C3` 並且利用 `git merge o/main` 來更新資料,現在我們的 `main` branch 跟 remote 同步了(在這個例子中,remote repository 叫作 `origin`)。"
|
||||
],
|
||||
"command": "git fetch; git merge o/master",
|
||||
"command": "git fetch; git merge o/main",
|
||||
"beforeCommand": "git clone; git commit; git fakeTeamwork"
|
||||
}
|
||||
},
|
||||
|
@ -462,9 +462,9 @@ exports.level = {
|
|||
"",
|
||||
"其实有很多方法的 —— 当远程分支中有新的提交时,你可以像合并本地分支那样来合并远程分支。也就是说就是你可以执行以下命令: ",
|
||||
"",
|
||||
"* `git cherry-pick o/master`",
|
||||
"* `git rebase o/master`",
|
||||
"* `git merge o/master`",
|
||||
"* `git cherry-pick o/main`",
|
||||
"* `git rebase o/main`",
|
||||
"* `git merge o/main`",
|
||||
"* 等等",
|
||||
"",
|
||||
"实际上,由于先抓取更新再合并到本地分支这个流程很常用,因此 Git 提供了一个专门的命令来完成这两个操作。它就是我们要讲的 `git pull`。"
|
||||
|
@ -478,9 +478,9 @@ exports.level = {
|
|||
"我们先来看看 `fetch`、`merge` 依次执行的效果"
|
||||
],
|
||||
"afterMarkdowns": [
|
||||
"我们用 `fetch` 下载了 `C3`, 然后通过 `git merge o/master` 合并了这一提交记录。现在我们的 `main` 分支包含了远程仓库中的更新(在本例中远程仓库名为 `origin`)"
|
||||
"我们用 `fetch` 下载了 `C3`, 然后通过 `git merge o/main` 合并了这一提交记录。现在我们的 `main` 分支包含了远程仓库中的更新(在本例中远程仓库名为 `origin`)"
|
||||
],
|
||||
"command": "git fetch; git merge o/master",
|
||||
"command": "git fetch; git merge o/main",
|
||||
"beforeCommand": "git clone; git commit; git fakeTeamwork"
|
||||
}
|
||||
},
|
||||
|
@ -521,9 +521,9 @@ exports.level = {
|
|||
"",
|
||||
"Tatsächlich gibt es eine Menge Wege dies zu erreichen -- sobald du die neuen Commits lokal verfügbar hast, kannst du sie integrieren wie Commits von ganz normalen anderen Branches. Du kannst also:",
|
||||
"",
|
||||
"* `git cherry-pick o/master`",
|
||||
"* `git rebase o/master`",
|
||||
"* `git merge o/master`",
|
||||
"* `git cherry-pick o/main`",
|
||||
"* `git rebase o/main`",
|
||||
"* `git merge o/main`",
|
||||
"* usw. usf. ausführen.",
|
||||
"",
|
||||
"Änderungen vom Server zu holen und dann in die eigene Arbeit zu mergen wird so häufig benötigt, dass Git einen Befehl kennt, der beides auf einmal erledigt! Das ist `git pull`."
|
||||
|
@ -537,9 +537,9 @@ exports.level = {
|
|||
"Schauen wir uns erst mal ein `fetch` gefolgt von `merge` an:"
|
||||
],
|
||||
"afterMarkdowns": [
|
||||
"Bämm -- wir haben `C3` mit `fetch` heruntergeladen und dann in unseren Branch mit `git merge o/master` integriert. Nun bildet unser `main` dieselben Inhalte ab, wie sie auf dem entfernten Server (`origin`) liegen."
|
||||
"Bämm -- wir haben `C3` mit `fetch` heruntergeladen und dann in unseren Branch mit `git merge o/main` integriert. Nun bildet unser `main` dieselben Inhalte ab, wie sie auf dem entfernten Server (`origin`) liegen."
|
||||
],
|
||||
"command": "git fetch; git merge o/master",
|
||||
"command": "git fetch; git merge o/main",
|
||||
"beforeCommand": "git clone; git commit; git fakeTeamwork"
|
||||
}
|
||||
},
|
||||
|
@ -580,9 +580,9 @@ exports.level = {
|
|||
"",
|
||||
"Существует множество вариантов решений - как только у вас имеется локальный коммит, вы можете соединить его с другой веткой. Это значит, вы можете выполнить одну из команд:",
|
||||
"",
|
||||
"* `git cherry-pick o/master`",
|
||||
"* `git rebase o/master`",
|
||||
"* `git merge o/master`",
|
||||
"* `git cherry-pick o/main`",
|
||||
"* `git rebase o/main`",
|
||||
"* `git merge o/main`",
|
||||
"* и т.д.",
|
||||
"",
|
||||
"Процедура *скачивания (fetching)* изменений с удалённой ветки и *объединения (merging)* настолько частая и распространённая, что git предоставляет вместо двух команд - одну! Эта команда - `git pull`."
|
||||
|
@ -596,9 +596,9 @@ exports.level = {
|
|||
"Давайте рассмотрим, как `fetch` и `merge` выполняются последовательно"
|
||||
],
|
||||
"afterMarkdowns": [
|
||||
"Опа - мы скачали `C3` с помощью команды `fetch` и затем объединяем эти наработки с помощью `git merge o/master`. Теперь наша ветка `main` отображает изменения с удалённого репозитория (в данном случае — с репозитория `origin`)"
|
||||
"Опа - мы скачали `C3` с помощью команды `fetch` и затем объединяем эти наработки с помощью `git merge o/main`. Теперь наша ветка `main` отображает изменения с удалённого репозитория (в данном случае — с репозитория `origin`)"
|
||||
],
|
||||
"command": "git fetch; git merge o/master",
|
||||
"command": "git fetch; git merge o/main",
|
||||
"beforeCommand": "git clone; git commit; git fakeTeamwork"
|
||||
}
|
||||
},
|
||||
|
@ -639,9 +639,9 @@ exports.level = {
|
|||
"",
|
||||
"実際には多くの方法があり、ローカルに利用可能なリモートの新しいコミットがある場合、あなたはそのコミットを他のブランチの通常のコミットと同じように、自分の作業に組み込むことができます。これは、あなたが次のようなコマンドを実行することで行えます:",
|
||||
"",
|
||||
"* `git cherry-pick o/master`",
|
||||
"* `git rebase o/master`",
|
||||
"* `git merge o/master`",
|
||||
"* `git cherry-pick o/main`",
|
||||
"* `git rebase o/main`",
|
||||
"* `git merge o/main`",
|
||||
"* その他",
|
||||
"",
|
||||
"実は、リモートの変更を取ってきてマージするという作業の流れはとてもよく行われるので、gitは実際にはその二つを同時に行うコマンドを提供しているのです!それは、`git pull`というコマンドです。"
|
||||
|
@ -655,9 +655,9 @@ exports.level = {
|
|||
"まずは、連続して`fetch`して`merge`する流れの方を見てみましょう。"
|
||||
],
|
||||
"afterMarkdowns": [
|
||||
"わーお。私たちは`C3`を`fetch`でダウンロードして、`git merge o/master`でこれをマージしました。今や私たちの`main`ブランチに(この場合、`origin`という名前の)リモートの新しい作業内容が反映されています。"
|
||||
"わーお。私たちは`C3`を`fetch`でダウンロードして、`git merge o/main`でこれをマージしました。今や私たちの`main`ブランチに(この場合、`origin`という名前の)リモートの新しい作業内容が反映されています。"
|
||||
],
|
||||
"command": "git fetch; git merge o/master",
|
||||
"command": "git fetch; git merge o/main",
|
||||
"beforeCommand": "git clone; git commit; git fakeTeamwork"
|
||||
}
|
||||
},
|
||||
|
@ -698,9 +698,9 @@ exports.level = {
|
|||
"",
|
||||
"Насправді, є кілька шляхів як цого досягнути -- щойно нові коміти з’явилися локально, ти можеш додавати їх в бранчі так само, як звичайні коміти. Це означає що ти можеш виконувати команди:",
|
||||
"",
|
||||
"* `git cherry-pick o/master`",
|
||||
"* `git rebase o/master`",
|
||||
"* `git merge o/master`",
|
||||
"* `git cherry-pick o/main`",
|
||||
"* `git rebase o/main`",
|
||||
"* `git merge o/main`",
|
||||
"* тощо.",
|
||||
"",
|
||||
"Насправді, процес *витягування* віддалених змін й подальший *мерджинг* їх є настільки популярним, що гіт пропонує спеціальну команду, що виконує ці дві дії за один раз! Ця команда називається `git pull`."
|
||||
|
@ -714,9 +714,9 @@ exports.level = {
|
|||
"Спершу виконаймо по черзі `fetch`, а потім `merge`."
|
||||
],
|
||||
"afterMarkdowns": [
|
||||
"Ка-бум -- ми звантажили `C3` за допомогою `fetch` і потім змерджили їх, використавши `git merge o/master`. Тепер наша гілка `main` відповідає гілці з віддаленого сховища (в цьому випадку, з назвою `origin`)"
|
||||
"Ка-бум -- ми звантажили `C3` за допомогою `fetch` і потім змерджили їх, використавши `git merge o/main`. Тепер наша гілка `main` відповідає гілці з віддаленого сховища (в цьому випадку, з назвою `origin`)"
|
||||
],
|
||||
"command": "git fetch; git merge o/master",
|
||||
"command": "git fetch; git merge o/main",
|
||||
"beforeCommand": "git clone; git commit; git fakeTeamwork"
|
||||
}
|
||||
},
|
||||
|
@ -757,9 +757,9 @@ exports.level = {
|
|||
"",
|
||||
"사실 이걸 하는 방법은 여러가지 있습니다 -- 새 커밋들을 로컬에 내려받은 이후에는 그냥 다른 브랜치에있는 일반 커밋처럼 활용할 수 있습니다. 이런 명령들을 실행할 수 있다는 뜻 입니다 :",
|
||||
"",
|
||||
"* `git cherry-pick o/master`",
|
||||
"* `git rebase o/master`",
|
||||
"* `git merge o/master`",
|
||||
"* `git cherry-pick o/main`",
|
||||
"* `git rebase o/main`",
|
||||
"* `git merge o/main`",
|
||||
"* 기타 등등",
|
||||
"",
|
||||
"사실 원격 저장소의 변경을 *fetch*하고 그이후에 *merge*하는 작업의 과정이 워낙 자주있는 일이라서 git은 이 두가지를 한번에 하는 명령을 제공합니다! 이 명령어는 `git pull` 입니다."
|
||||
|
@ -773,9 +773,9 @@ exports.level = {
|
|||
"먼저 `fetch` 와 `merge`가 차례로 실행되는것을 확인해 봅시다"
|
||||
],
|
||||
"afterMarkdowns": [
|
||||
"Boom -- 우리는 `C3`를 `fetch`로 내려 받고 `git merge o/master`로 우리의 작업으로 병합했습니다. 이제 우리의 `main` 브랜치는 원격 저장소의 새 작업들을 반영하게 됩니다(지금 사례에서 `origin`입니다)."
|
||||
"Boom -- 우리는 `C3`를 `fetch`로 내려 받고 `git merge o/main`로 우리의 작업으로 병합했습니다. 이제 우리의 `main` 브랜치는 원격 저장소의 새 작업들을 반영하게 됩니다(지금 사례에서 `origin`입니다)."
|
||||
],
|
||||
"command": "git fetch; git merge o/master",
|
||||
"command": "git fetch; git merge o/main",
|
||||
"beforeCommand": "git clone; git commit; git fakeTeamwork"
|
||||
}
|
||||
},
|
||||
|
@ -816,9 +816,9 @@ exports.level = {
|
|||
"",
|
||||
"Thực ra thì có nhiều cách đề làm điều này -- một khi bạn đã có các commit này ở ko chứa địa phương, bạn có thể hợp nhất chúng như với các commit ở các nhánh khác. Nghĩa là bạn có thể sử dụng các câu lệnh sau:",
|
||||
"",
|
||||
"* `git cherry-pick o/master`",
|
||||
"* `git rebase o/master`",
|
||||
"* `git merge o/master`",
|
||||
"* `git cherry-pick o/main`",
|
||||
"* `git rebase o/main`",
|
||||
"* `git merge o/main`",
|
||||
"* etc., etc.",
|
||||
"",
|
||||
"Thực tế thì, quá trình *nạp* commit từ kho chứa từ xa và *hợp nhất* chúng phổ biết đến nỗi git cung cấp một câu lệnh để làm cả 2 điều này một lúc! Đó là `git pull`."
|
||||
|
@ -832,9 +832,9 @@ exports.level = {
|
|||
"Trước tiên hãy xem quá trình `nạp` và `hợp nhất` được thực hiện một cách tuần tự."
|
||||
],
|
||||
"afterMarkdowns": [
|
||||
"Bùùm -- ta tải xuống commit `C3` với lệnh `git fetch` rồi sau đó hợp nhất nó với lệnh `git merge o/master`. Giờ thì nhánh `main` đã phản ánh trạng thái mới từ kho chứa từ xa (trong trường hợp này là `origin`)"
|
||||
"Bùùm -- ta tải xuống commit `C3` với lệnh `git fetch` rồi sau đó hợp nhất nó với lệnh `git merge o/main`. Giờ thì nhánh `main` đã phản ánh trạng thái mới từ kho chứa từ xa (trong trường hợp này là `origin`)"
|
||||
],
|
||||
"command": "git fetch; git merge o/master",
|
||||
"command": "git fetch; git merge o/main",
|
||||
"beforeCommand": "git clone; git commit; git fakeTeamwork"
|
||||
}
|
||||
},
|
||||
|
@ -875,9 +875,9 @@ exports.level = {
|
|||
"",
|
||||
"V bistvu je več načinov za izvedbo tega -- ko imaš enkrat lokalno na voljo nove commite, jih lahko vključiš, kot da so normalni commiti na drugem branchu. To pomeni, da lahko izvedeš ukaze, kot so:",
|
||||
"",
|
||||
"* `git cherry-pick o/master`",
|
||||
"* `git rebase o/master`",
|
||||
"* `git merge o/master`",
|
||||
"* `git cherry-pick o/main`",
|
||||
"* `git rebase o/main`",
|
||||
"* `git merge o/main`",
|
||||
"* itd., itd.",
|
||||
"",
|
||||
"Pravzaprav je *fetchanje* oddaljenih sprememb in kasneje *merganje* le-teh tako pogosto, da ima git dejansko ukaz, ki naredi oboje! Ukaz je `git pull`."
|
||||
|
@ -891,9 +891,9 @@ exports.level = {
|
|||
"Poglejmo najprej `fetch` in `merge` izvedena zaporedno:"
|
||||
],
|
||||
"afterMarkdowns": [
|
||||
"Boom -- prenesli smo `C3` s `fetch` in nato mergali delo z `git merge o/master`. Sedaj naš `main` branch odseva spremembe novega dela iz oddaljenega repoztorija (v tem primeru poimenovan `origin`)."
|
||||
"Boom -- prenesli smo `C3` s `fetch` in nato mergali delo z `git merge o/main`. Sedaj naš `main` branch odseva spremembe novega dela iz oddaljenega repoztorija (v tem primeru poimenovan `origin`)."
|
||||
],
|
||||
"command": "git fetch; git merge o/master",
|
||||
"command": "git fetch; git merge o/main",
|
||||
"beforeCommand": "git clone; git commit; git fakeTeamwork"
|
||||
}
|
||||
},
|
||||
|
|
|
@ -82,9 +82,9 @@ exports.level = {
|
|||
"If we specify the place to fetch, everything happens as before with fetch but we merge in whatever was just fetched."
|
||||
],
|
||||
"afterMarkdowns": [
|
||||
"See! by specifying `main` we downloaded commits onto `o/master` just as normal. Then we merged `o/master` to our currently checked out location which is *not* the local branch `main`. For this reason it can actually make sense to run git pull multiple times (with the same args) from different locations in order to update multiple branches."
|
||||
"See! by specifying `main` we downloaded commits onto `o/main` just as normal. Then we merged `o/main` to our currently checked out location which is *not* the local branch `main`. For this reason it can actually make sense to run git pull multiple times (with the same args) from different locations in order to update multiple branches."
|
||||
],
|
||||
"command": "git pull origin master",
|
||||
"command": "git pull origin main",
|
||||
"beforeCommand": "git clone; go -b bar; git commit; git fakeTeamwork"
|
||||
}
|
||||
},
|
||||
|
@ -95,9 +95,9 @@ exports.level = {
|
|||
"Does it work with source and destination too? You bet! Let's see that:"
|
||||
],
|
||||
"afterMarkdowns": [
|
||||
"Wow, that's a TON in one command. We created a new branch locally named `foo`, downloaded commits from remote's master onto that branch `foo`, and then merged that branch into our currently checked out branch `bar`. It's over 9000!!!"
|
||||
"Wow, that's a TON in one command. We created a new branch locally named `foo`, downloaded commits from remote's main onto that branch `foo`, and then merged that branch into our currently checked out branch `bar`. It's over 9000!!!"
|
||||
],
|
||||
"command": "git pull origin master:foo",
|
||||
"command": "git pull origin main:foo",
|
||||
"beforeCommand": "git clone; git fakeTeamwork; go -b bar; git commit"
|
||||
}
|
||||
},
|
||||
|
@ -156,9 +156,9 @@ exports.level = {
|
|||
"Si nous précisons l'emplacement à rapatrier tout se passe comme précédemment, avec fetch, mais en sus nous fusionnons tout ce qui a été rapatrié."
|
||||
],
|
||||
"afterMarkdowns": [
|
||||
"Vu ? En précisant `main` nous avons téléchargé les commits dans `o/master` comme d'habitude. Puis nous avons fusionné `o/master` avec là où nous sommes, *sans nous soucier* de la branche courante."
|
||||
"Vu ? En précisant `main` nous avons téléchargé les commits dans `o/main` comme d'habitude. Puis nous avons fusionné `o/main` avec là où nous sommes, *sans nous soucier* de la branche courante."
|
||||
],
|
||||
"command": "git pull origin master",
|
||||
"command": "git pull origin main",
|
||||
"beforeCommand": "git clone; go -b bar; git commit; git fakeTeamwork"
|
||||
}
|
||||
},
|
||||
|
@ -169,9 +169,9 @@ exports.level = {
|
|||
"Cela fonctionne-t-il aussi bien avec une source et une destination ? Et oui ! Voyons cela :"
|
||||
],
|
||||
"afterMarkdowns": [
|
||||
"Wow, INCROYABLE tout ce que nous avons fait en une commande. Nous avons créé une branche locale nommée `foo`, téléchargé les commits depuis la branche master distante dans `foo`, et ensuite fusionné cette branche dans notre branche actuelle de travail (checkoutée) `bar` !!!"
|
||||
"Wow, INCROYABLE tout ce que nous avons fait en une commande. Nous avons créé une branche locale nommée `foo`, téléchargé les commits depuis la branche main distante dans `foo`, et ensuite fusionné cette branche dans notre branche actuelle de travail (checkoutée) `bar` !!!"
|
||||
],
|
||||
"command": "git pull origin master:foo",
|
||||
"command": "git pull origin main:foo",
|
||||
"beforeCommand": "git clone; git fakeTeamwork; go -b bar; git commit"
|
||||
}
|
||||
},
|
||||
|
@ -230,9 +230,9 @@ exports.level = {
|
|||
"Si especificamos el lugar del que hacer fetch, todo ocurre como antes, pero sólo mergeamos lo que se fetcheó."
|
||||
],
|
||||
"afterMarkdowns": [
|
||||
"¡Ves! Especificando `main` bajamos los commits a `o/master` como siempre. Después mergeamos `o/master` a nuestra rama actual, *sin importar* qué había en nuestra copia de trabajo."
|
||||
"¡Ves! Especificando `main` bajamos los commits a `o/main` como siempre. Después mergeamos `o/main` a nuestra rama actual, *sin importar* qué había en nuestra copia de trabajo."
|
||||
],
|
||||
"command": "git pull origin master",
|
||||
"command": "git pull origin main",
|
||||
"beforeCommand": "git clone; go -b bar; git commit; git fakeTeamwork"
|
||||
}
|
||||
},
|
||||
|
@ -243,9 +243,9 @@ exports.level = {
|
|||
"¿Esto funciona con origen y destino, también? ¡Más vale! Veámoslo:"
|
||||
],
|
||||
"afterMarkdowns": [
|
||||
"Wow, eso es un MONTÓN en un único comando. Creamos una nueva rama local llamada `foo`, descargamos los commits del master del remoto a esta rama `foo`, y después mezclamos esa rama a nuestra rama actual `bar`. ¡¡¡Supera los 9000!!!"
|
||||
"Wow, eso es un MONTÓN en un único comando. Creamos una nueva rama local llamada `foo`, descargamos los commits del main del remoto a esta rama `foo`, y después mezclamos esa rama a nuestra rama actual `bar`. ¡¡¡Supera los 9000!!!"
|
||||
],
|
||||
"command": "git pull origin master:foo",
|
||||
"command": "git pull origin main:foo",
|
||||
"beforeCommand": "git clone; git fakeTeamwork; go -b bar; git commit"
|
||||
}
|
||||
},
|
||||
|
@ -304,9 +304,9 @@ exports.level = {
|
|||
"Si especificamos el lugar desde donde hacer fetch, todo ocurre como antes, pero sólo mergeamos lo que se fetcheó."
|
||||
],
|
||||
"afterMarkdowns": [
|
||||
"¡Ves! Especificando `main` descargamos los commits a `o/master` como siempre. Después mergeamos `o/master` a nuestra rama actual, *sin importar* qué había en nuestra copia de trabajo."
|
||||
"¡Ves! Especificando `main` descargamos los commits a `o/main` como siempre. Después mergeamos `o/main` a nuestra rama actual, *sin importar* qué había en nuestra copia de trabajo."
|
||||
],
|
||||
"command": "git pull origin master",
|
||||
"command": "git pull origin main",
|
||||
"beforeCommand": "git clone; go -b bar; git commit; git fakeTeamwork"
|
||||
}
|
||||
},
|
||||
|
@ -317,9 +317,9 @@ exports.level = {
|
|||
"¿Esto funciona con origen y destino, también? ¡Más vale! Veámoslo:"
|
||||
],
|
||||
"afterMarkdowns": [
|
||||
"Caramba, eso es una BARBARIDAD en un único comando. Creamos una nueva rama local llamada `foo`, descargamos los commits del master del remoto a esta rama `foo`, y después mezclamos esa rama a nuestra rama actual `bar`. ¡¡¡Supera los 9000!!!"
|
||||
"Caramba, eso es una BARBARIDAD en un único comando. Creamos una nueva rama local llamada `foo`, descargamos los commits del main del remoto a esta rama `foo`, y después mezclamos esa rama a nuestra rama actual `bar`. ¡¡¡Supera los 9000!!!"
|
||||
],
|
||||
"command": "git pull origin master:foo",
|
||||
"command": "git pull origin main:foo",
|
||||
"beforeCommand": "git clone; git fakeTeamwork; go -b bar; git commit"
|
||||
}
|
||||
},
|
||||
|
@ -378,9 +378,9 @@ exports.level = {
|
|||
"Se especificarmos o lugar onde fazer o fetch, tudo acontece como antes com o fetch, mas fazemos o merge naquilo que acabou de ser baixado."
|
||||
],
|
||||
"afterMarkdowns": [
|
||||
"Veja! Especificando `main` nós baixamos commits em `o/master` como sempre. Então fizemos um merge de `o/master` com o lugar onde estamos, *independente* daquilo que está atualmente em checkout."
|
||||
"Veja! Especificando `main` nós baixamos commits em `o/main` como sempre. Então fizemos um merge de `o/main` com o lugar onde estamos, *independente* daquilo que está atualmente em checkout."
|
||||
],
|
||||
"command": "git pull origin master",
|
||||
"command": "git pull origin main",
|
||||
"beforeCommand": "git clone; go -b bar; git commit; git fakeTeamwork"
|
||||
}
|
||||
},
|
||||
|
@ -391,9 +391,9 @@ exports.level = {
|
|||
"Isso também funciona com origem e destino especificados? Sim, você acertou! Vejamos:"
|
||||
],
|
||||
"afterMarkdowns": [
|
||||
"Wow, isso é MUITA coisa em um comando só. Nós criamos um novo ramo local chamado `foo`, baixamos commits do master remoto nesse ramo `foo`, e então fizemos um merge dele com o ramo atualmente em checkout, `bar`."
|
||||
"Wow, isso é MUITA coisa em um comando só. Nós criamos um novo ramo local chamado `foo`, baixamos commits do main remoto nesse ramo `foo`, e então fizemos um merge dele com o ramo atualmente em checkout, `bar`."
|
||||
],
|
||||
"command": "git pull origin master:foo",
|
||||
"command": "git pull origin main:foo",
|
||||
"beforeCommand": "git clone; git fakeTeamwork; go -b bar; git commit"
|
||||
}
|
||||
},
|
||||
|
@ -452,9 +452,9 @@ exports.level = {
|
|||
"Se especificamos o lugar do que facer o fetch, todo ocorre coma antes, pero só mesturamos o que se descargou."
|
||||
],
|
||||
"afterMarkdowns": [
|
||||
"¡Ves! Indicando `main` baixamos os commits á `o/master` coma sempre. Despois mesturamos `o/master` á nosa rama actual, *sen importar* qué tiñamos na nos copia de traballo."
|
||||
"¡Ves! Indicando `main` baixamos os commits á `o/main` coma sempre. Despois mesturamos `o/main` á nosa rama actual, *sen importar* qué tiñamos na nos copia de traballo."
|
||||
],
|
||||
"command": "git pull origin master",
|
||||
"command": "git pull origin main",
|
||||
"beforeCommand": "git clone; go -b bar; git commit; git fakeTeamwork"
|
||||
}
|
||||
},
|
||||
|
@ -465,9 +465,9 @@ exports.level = {
|
|||
"¿Esto funciona co orixe e o destino, tamén? ¡Máis lle vale! Vexámolo:"
|
||||
],
|
||||
"afterMarkdowns": [
|
||||
"Wow, eso es unha CHEA nun único comando. Creamos unha nova rama local chamada `foo`, descargamos os commits do master do remoto a esta rama `foo`, e logo mesturamos esa rama á nosa rama actual `bar`. ¡¡¡Supera os 9000!!!"
|
||||
"Wow, eso es unha CHEA nun único comando. Creamos unha nova rama local chamada `foo`, descargamos os commits do main do remoto a esta rama `foo`, e logo mesturamos esa rama á nosa rama actual `bar`. ¡¡¡Supera os 9000!!!"
|
||||
],
|
||||
"command": "git pull origin master:foo",
|
||||
"command": "git pull origin main:foo",
|
||||
"beforeCommand": "git clone; git fakeTeamwork; go -b bar; git commit"
|
||||
}
|
||||
},
|
||||
|
@ -526,9 +526,9 @@ exports.level = {
|
|||
"如果我們在 fetch 的時候有指定`位置`的話,跟之前一樣,fetch 所做的事情沒有變,但是我們會 merge 我們剛剛所 fetch 的該`位置`的commit。"
|
||||
],
|
||||
"afterMarkdowns": [
|
||||
"看吧!指定位置為 `main`,跟平常一樣,我們下載了 commit 並且放到 `o/master` 上,接著,我們會 merge `o/master` 到我們現在的位置,*不管*我們現在所 checkout 的位置在哪裡。"
|
||||
"看吧!指定位置為 `main`,跟平常一樣,我們下載了 commit 並且放到 `o/main` 上,接著,我們會 merge `o/main` 到我們現在的位置,*不管*我們現在所 checkout 的位置在哪裡。"
|
||||
],
|
||||
"command": "git pull origin master",
|
||||
"command": "git pull origin main",
|
||||
"beforeCommand": "git clone; go -b bar; git commit; git fakeTeamwork"
|
||||
}
|
||||
},
|
||||
|
@ -541,7 +541,7 @@ exports.level = {
|
|||
"afterMarkdowns": [
|
||||
"哇!這個指令強而有力,我們在 local 建立了一個新的 `foo` branch,下載了 remote 的 `main` 的 commit,並且放到 local 的 `foo` branch,之後 merge `foo` branch 到我們目前所 checkout 的 `bar` branch。這實在是太超過了!!!"
|
||||
],
|
||||
"command": "git pull origin master:foo",
|
||||
"command": "git pull origin main:foo",
|
||||
"beforeCommand": "git clone; git fakeTeamwork; go -b bar; git commit"
|
||||
}
|
||||
},
|
||||
|
@ -600,9 +600,9 @@ exports.level = {
|
|||
"如果我们指定要抓取的 place,所有的事情都会跟之前一样发生,只是增加了 merge 操作"
|
||||
],
|
||||
"afterMarkdowns": [
|
||||
"看到了吧! 通过指定 `main` 我们更新了 `o/master`。然后将 `o/master` merge 到我们的检出位置,**无论**我们当前检出的位置是哪。"
|
||||
"看到了吧! 通过指定 `main` 我们更新了 `o/main`。然后将 `o/main` merge 到我们的检出位置,**无论**我们当前检出的位置是哪。"
|
||||
],
|
||||
"command": "git pull origin master",
|
||||
"command": "git pull origin main",
|
||||
"beforeCommand": "git clone; go -b bar; git commit; git fakeTeamwork"
|
||||
}
|
||||
},
|
||||
|
@ -613,9 +613,9 @@ exports.level = {
|
|||
"pull 也可以用 source:destination 吗? 当然喽, 看看吧:"
|
||||
],
|
||||
"afterMarkdowns": [
|
||||
" 哇, 这个命令做的事情真多。它先在本地创建了一个叫 `foo` 的分支,从远程仓库中的 master 分支中下载提交记录,并合并到 `foo`,然后再 merge 到我们的当前检出的分支 `bar` 上。操作够多的吧?!"
|
||||
" 哇, 这个命令做的事情真多。它先在本地创建了一个叫 `foo` 的分支,从远程仓库中的 main 分支中下载提交记录,并合并到 `foo`,然后再 merge 到我们的当前检出的分支 `bar` 上。操作够多的吧?!"
|
||||
],
|
||||
"command": "git pull origin master:foo",
|
||||
"command": "git pull origin main:foo",
|
||||
"beforeCommand": "git clone; git fakeTeamwork; go -b bar; git commit"
|
||||
}
|
||||
},
|
||||
|
@ -674,9 +674,9 @@ exports.level = {
|
|||
"Wenn wir den Ort, auf den das `fetch` ausgeführt werden soll, angeben, passiert alles so wie beim `git fetch`, aber es wird direkt danach auch ein Merge ausgeführt."
|
||||
],
|
||||
"afterMarkdowns": [
|
||||
"Siehst du? Da wir `main` angegeben haben, sind die Commits in `o/master` heruntergeladen worden. Danach wurde `o/master` gemerged, egal was gerade ausgecheckt war."
|
||||
"Siehst du? Da wir `main` angegeben haben, sind die Commits in `o/main` heruntergeladen worden. Danach wurde `o/main` gemerged, egal was gerade ausgecheckt war."
|
||||
],
|
||||
"command": "git pull origin master",
|
||||
"command": "git pull origin main",
|
||||
"beforeCommand": "git clone; go -b bar; git commit; git fakeTeamwork"
|
||||
}
|
||||
},
|
||||
|
@ -689,7 +689,7 @@ exports.level = {
|
|||
"afterMarkdowns": [
|
||||
"Wow, das ist eine Menge in einem einzelnen Befehl. Wir haben lokal einen neuen Branch namens `foo` erstellt, die Commits vom `main` des Servers dorthin heruntergeladen und ihn danach in unseren aktuell ausgecheckten Branch `bar` gemerged."
|
||||
],
|
||||
"command": "git pull origin master:foo",
|
||||
"command": "git pull origin main:foo",
|
||||
"beforeCommand": "git clone; git fakeTeamwork; go -b bar; git commit"
|
||||
}
|
||||
},
|
||||
|
@ -748,9 +748,9 @@ exports.level = {
|
|||
"Здесь сначала выполнится fetch с аргументом указанным к pull, а merge выполняется с теми изменениями, которые будут скачаны командой fetch."
|
||||
],
|
||||
"afterMarkdowns": [
|
||||
"Как видно, мы указали `main`, поэтому как обычно все обновления притянулись на ветку `o/master`. Затем мы слили (merge) обновленную ветку `o/master` с веткой, на которой мы находимся."
|
||||
"Как видно, мы указали `main`, поэтому как обычно все обновления притянулись на ветку `o/main`. Затем мы слили (merge) обновленную ветку `o/main` с веткой, на которой мы находимся."
|
||||
],
|
||||
"command": "git pull origin master",
|
||||
"command": "git pull origin main",
|
||||
"beforeCommand": "git clone; go -b bar; git commit; git fakeTeamwork"
|
||||
}
|
||||
},
|
||||
|
@ -763,7 +763,7 @@ exports.level = {
|
|||
"afterMarkdowns": [
|
||||
"Ого, сколько всего выполнено всего одной командой!. Мы создали новую ветку `foo` в локальном репозитории, скачали на неё изменения с ветки `main` удаленного репозитория, а затем слили эту ветку с веткой `bar`, на которой мы находились!"
|
||||
],
|
||||
"command": "git pull origin master:foo",
|
||||
"command": "git pull origin main:foo",
|
||||
"beforeCommand": "git clone; git fakeTeamwork; go -b bar; git commit"
|
||||
}
|
||||
},
|
||||
|
@ -822,9 +822,9 @@ exports.level = {
|
|||
"place를 지정하면, 이전에 fecth를 하던때와 완전히 똑같이 진행되고 fetch한것을 병합합니다."
|
||||
],
|
||||
"afterMarkdowns": [
|
||||
"보이죠! `main`를 지정해서 우리는 `o/master`에 평소처럼 커밋들을 내려받았습니다. 그다음 우리가 있는 곳으로 `o/master`를 병합했습니다 현재 체크아웃된 브랜치와 *상관없이* 말이죠"
|
||||
"보이죠! `main`를 지정해서 우리는 `o/main`에 평소처럼 커밋들을 내려받았습니다. 그다음 우리가 있는 곳으로 `o/main`를 병합했습니다 현재 체크아웃된 브랜치와 *상관없이* 말이죠"
|
||||
],
|
||||
"command": "git pull origin master",
|
||||
"command": "git pull origin main",
|
||||
"beforeCommand": "git clone; go -b bar; git commit; git fakeTeamwork"
|
||||
}
|
||||
},
|
||||
|
@ -837,7 +837,7 @@ exports.level = {
|
|||
"afterMarkdowns": [
|
||||
"이야, 명령어 하나에 많은게 일어나고있습니다. 로컬에 이름이 `foo`인 새 브랜치를 만들고, 원격 저장소의 master에서 이 브랜치 `foo`에 커밋들을 내려받습니다, 그후 그 브랜치를 우리가 현재 체크아웃한 브랜치 `bar`로 병합했습니다. 오오오!!!"
|
||||
],
|
||||
"command": "git pull origin master:foo",
|
||||
"command": "git pull origin main:foo",
|
||||
"beforeCommand": "git clone; git fakeTeamwork; go -b bar; git commit"
|
||||
}
|
||||
},
|
||||
|
@ -896,9 +896,9 @@ exports.level = {
|
|||
"Якщо ми вказуємо місце призначення для fetch, fetch виконується як звичайно, але мердж відбудеться з тим, що ми щойно стягнули"
|
||||
],
|
||||
"afterMarkdowns": [
|
||||
"От бачиш, вказавши `main`, ми звантажили коміти в `o/master`, як завжди. Потім змерджили `o/master` в поточну гілку."
|
||||
"От бачиш, вказавши `main`, ми звантажили коміти в `o/main`, як завжди. Потім змерджили `o/main` в поточну гілку."
|
||||
],
|
||||
"command": "git pull origin master",
|
||||
"command": "git pull origin main",
|
||||
"beforeCommand": "git clone; go -b bar; git commit; git fakeTeamwork"
|
||||
}
|
||||
},
|
||||
|
@ -909,9 +909,9 @@ exports.level = {
|
|||
"Чи це працює також при вказанні `source` і `destination`? І не сумнівайся! Ось приклад:"
|
||||
],
|
||||
"afterMarkdowns": [
|
||||
"Ого, стільки роботи однією командою. Ми створили локальну гілку з назвою `foo`, звантажили в неї коміти з віддаленого master, а потім змерджили `foo` в поточну гілку `bar`!"
|
||||
"Ого, стільки роботи однією командою. Ми створили локальну гілку з назвою `foo`, звантажили в неї коміти з віддаленого main, а потім змерджили `foo` в поточну гілку `bar`!"
|
||||
],
|
||||
"command": "git pull origin master:foo",
|
||||
"command": "git pull origin main:foo",
|
||||
"beforeCommand": "git clone; git fakeTeamwork; go -b bar; git commit"
|
||||
}
|
||||
},
|
||||
|
@ -970,9 +970,9 @@ exports.level = {
|
|||
"Nếu ta chỉ định vị trí để nạp, mọi thứ diễn ra như với git fetch nhưng giờ đây có thêm một bước đó là ta hợp nhất những gì mà ta đã nạp"
|
||||
],
|
||||
"afterMarkdowns": [
|
||||
"Thấy chứ! Bằng cách chỉ định nhánh `main` ta tải các commit xuống nhánh `o/master` như thường lệ. Sau đó hợp nhất nhánh `o/master` vào nhánh cục bộ mà ta đang đứng, nhánh mà *không phải* nhánh cục bộ `main`. Nhờ vậy mà ta có thể chạy cùng một lệnh git pull(với cùng tham số) nhiều lần ở những vị trí khác nhau để áp dụng cùng cập nhật lên các nhánh khác nhau."
|
||||
"Thấy chứ! Bằng cách chỉ định nhánh `main` ta tải các commit xuống nhánh `o/main` như thường lệ. Sau đó hợp nhất nhánh `o/main` vào nhánh cục bộ mà ta đang đứng, nhánh mà *không phải* nhánh cục bộ `main`. Nhờ vậy mà ta có thể chạy cùng một lệnh git pull(với cùng tham số) nhiều lần ở những vị trí khác nhau để áp dụng cùng cập nhật lên các nhánh khác nhau."
|
||||
],
|
||||
"command": "git pull origin master",
|
||||
"command": "git pull origin main",
|
||||
"beforeCommand": "git clone; go -b bar; git commit; git fakeTeamwork"
|
||||
}
|
||||
},
|
||||
|
@ -983,9 +983,9 @@ exports.level = {
|
|||
"Điều này có hoạt động với đích và nguồn không? Đoán đúng rồi đấy! Cùng xem thử nào:"
|
||||
],
|
||||
"afterMarkdowns": [
|
||||
"Wao, quá NHIỀU trong một câu lệnh. Ta tạo ra một nhánh cục bộ là `foo`, tải commit xuống từ nhánh từ xa master xuống nhánh `foo` đó, và sau đó hợp nhất commit vào nhánh `bar` mà ta đang đứng. Đủ thứ luôn!!!"
|
||||
"Wao, quá NHIỀU trong một câu lệnh. Ta tạo ra một nhánh cục bộ là `foo`, tải commit xuống từ nhánh từ xa main xuống nhánh `foo` đó, và sau đó hợp nhất commit vào nhánh `bar` mà ta đang đứng. Đủ thứ luôn!!!"
|
||||
],
|
||||
"command": "git pull origin master:foo",
|
||||
"command": "git pull origin main:foo",
|
||||
"beforeCommand": "git clone; git fakeTeamwork; go -b bar; git commit"
|
||||
}
|
||||
},
|
||||
|
@ -1044,9 +1044,9 @@ exports.level = {
|
|||
"Če določimo mesto za fetchanje, se zgodi vse kot prej s fetchem, ampak tudi zmergamo, kar smo pravkar fetchali."
|
||||
],
|
||||
"afterMarkdowns": [
|
||||
"Vidiš! Z določitvijo `main` smo prenesli commite na `o/master` kot ponavadi. Potem smo zmergali `o/master` v našo trenutno checkoutano lokacijo, ki *ni* lokalni branch `main`. Zaradi tega razloga je morda celo logično, da izvedemo git pull večkrat (z istimi argumenti) iz drugi lokacij, da posodobimo več branchev."
|
||||
"Vidiš! Z določitvijo `main` smo prenesli commite na `o/main` kot ponavadi. Potem smo zmergali `o/main` v našo trenutno checkoutano lokacijo, ki *ni* lokalni branch `main`. Zaradi tega razloga je morda celo logično, da izvedemo git pull večkrat (z istimi argumenti) iz drugi lokacij, da posodobimo več branchev."
|
||||
],
|
||||
"command": "git pull origin master",
|
||||
"command": "git pull origin main",
|
||||
"beforeCommand": "git clone; go -b bar; git commit; git fakeTeamwork"
|
||||
}
|
||||
},
|
||||
|
@ -1059,7 +1059,7 @@ exports.level = {
|
|||
"afterMarkdowns": [
|
||||
"Wow, to je pa RES veliko v enem ukazu. Naredili smo nov lokalen branch imenovan `foo`, prenesli commite iz oddaljenega masterja na ta branch `foo` in potem zmergali ta branch v naš trenutno checkoutan branch `bar`. Je več kot 9000!!!"
|
||||
],
|
||||
"command": "git pull origin master:foo",
|
||||
"command": "git pull origin main:foo",
|
||||
"beforeCommand": "git clone; git fakeTeamwork; go -b bar; git commit"
|
||||
}
|
||||
},
|
||||
|
|
|
@ -66,7 +66,7 @@ exports.level = {
|
|||
"Here we have some changes that the remote does not have. Let's upload them!"
|
||||
],
|
||||
"afterMarkdowns": [
|
||||
"There we go -- the remote received commit `C2`, the branch `main` on the remote was updated to point at `C2`, and our *own* reflection of the remote (`o/master`) was updated as well. Everything is in sync!"
|
||||
"There we go -- the remote received commit `C2`, the branch `main` on the remote was updated to point at `C2`, and our *own* reflection of the remote (`o/main`) was updated as well. Everything is in sync!"
|
||||
],
|
||||
"command": "git push",
|
||||
"beforeCommand": "git clone; git commit"
|
||||
|
@ -109,7 +109,7 @@ exports.level = {
|
|||
"Nous avons fait ici quelques changements que le dépôt distant n'a pas. Envoyons-les !"
|
||||
],
|
||||
"afterMarkdowns": [
|
||||
"Et voilà : le dépôt distant a reçu le commit `C2`, la branche `main` a été mise à jour sur `C2`, et votre *propre* représentation de la branche distante (`o/master`) a aussi été mise à jour. Tout est synchronisé !"
|
||||
"Et voilà : le dépôt distant a reçu le commit `C2`, la branche `main` a été mise à jour sur `C2`, et votre *propre* représentation de la branche distante (`o/main`) a aussi été mise à jour. Tout est synchronisé !"
|
||||
],
|
||||
"command": "git push",
|
||||
"beforeCommand": "git clone; git commit"
|
||||
|
@ -150,7 +150,7 @@ exports.level = {
|
|||
"Acá tenemos algunos cambios que nuestro remoto no tiene. ¡Subámoslos!"
|
||||
],
|
||||
"afterMarkdowns": [
|
||||
"Ahí está: el remoto recibió el commit `C2`, la rama `main` de ese remoto se actualizó para apuntar a `C2`, y nuestro *propio* reflejo del remoto (`o/master`) también fue actualizado. ¡Todo está en sincronía!"
|
||||
"Ahí está: el remoto recibió el commit `C2`, la rama `main` de ese remoto se actualizó para apuntar a `C2`, y nuestro *propio* reflejo del remoto (`o/main`) también fue actualizado. ¡Todo está en sincronía!"
|
||||
],
|
||||
"command": "git push",
|
||||
"beforeCommand": "git clone; git commit"
|
||||
|
@ -191,7 +191,7 @@ exports.level = {
|
|||
"Aquí tenemos algunos cambios que nuestro remoto no tiene. ¡Subámoslos!"
|
||||
],
|
||||
"afterMarkdowns": [
|
||||
"Ahí está: el remoto recibió el commit `C2`, la rama `main` de ese remoto se actualizó para apuntar a `C2`, y nuestro *propio* reflejo del remoto (`o/master`) también fue actualizado. ¡Todo está en sincronía!"
|
||||
"Ahí está: el remoto recibió el commit `C2`, la rama `main` de ese remoto se actualizó para apuntar a `C2`, y nuestro *propio* reflejo del remoto (`o/main`) también fue actualizado. ¡Todo está en sincronía!"
|
||||
],
|
||||
"command": "git push",
|
||||
"beforeCommand": "git clone; git commit"
|
||||
|
@ -234,7 +234,7 @@ exports.level = {
|
|||
"Aqui temos algumas mudanças que o repositório remoto não contém. Vamos subi-las!"
|
||||
],
|
||||
"afterMarkdowns": [
|
||||
"Aqui vamos nós -- o repositório remoto recebeu o commit `C2`, o ramo `main` no repositório remoto foi atualizado para apontar para `C2`, e a *nossa* reflexão do remoto (`o/master`) foi atualizada também. Está tudo sincronizado!"
|
||||
"Aqui vamos nós -- o repositório remoto recebeu o commit `C2`, o ramo `main` no repositório remoto foi atualizado para apontar para `C2`, e a *nossa* reflexão do remoto (`o/main`) foi atualizada também. Está tudo sincronizado!"
|
||||
],
|
||||
"command": "git push",
|
||||
"beforeCommand": "git clone; git commit"
|
||||
|
@ -277,7 +277,7 @@ exports.level = {
|
|||
"Aquí temos algúns cambios que o repositorio remoto non contén. ¡Imos subilas!"
|
||||
],
|
||||
"afterMarkdowns": [
|
||||
"Ahí imos -- o repositorio remoto recibiu o commit `C2`, a rama `main` do repositorio remoto foi actualizado para apuntar para `C2`, e o *noso* reflexo do remoto (`o/master`) foi atualizado tamén. ¡Está todo sincronizado!"
|
||||
"Ahí imos -- o repositorio remoto recibiu o commit `C2`, a rama `main` do repositorio remoto foi actualizado para apuntar para `C2`, e o *noso* reflexo do remoto (`o/main`) foi atualizado tamén. ¡Está todo sincronizado!"
|
||||
],
|
||||
"command": "git push",
|
||||
"beforeCommand": "git clone; git commit"
|
||||
|
@ -318,7 +318,7 @@ exports.level = {
|
|||
"這裡我們有了一些 remote 所沒有的 commit。讓我們來上傳它們吧!"
|
||||
],
|
||||
"afterMarkdowns": [
|
||||
"我說的沒錯吧!remote 收到了 commit `C2`,同時在 remote 上的 `main` branch 也一起更新並且指向 `C2`,同時我們*自己的* `o/master` 也一併更新了!"
|
||||
"我說的沒錯吧!remote 收到了 commit `C2`,同時在 remote 上的 `main` branch 也一起更新並且指向 `C2`,同時我們*自己的* `o/main` 也一併更新了!"
|
||||
],
|
||||
"command": "git push",
|
||||
"beforeCommand": "git clone; git commit"
|
||||
|
@ -362,7 +362,7 @@ exports.level = {
|
|||
"这里我们准备了一些远程仓库中没有的提交记录, 咱们开始先上传吧!"
|
||||
],
|
||||
"afterMarkdowns": [
|
||||
"过去了, 远程仓库接收了 `C2`,远程仓库中的 `main` 分支也被更新到指向 `C2` 了,我们的远程分支 (o/master) 也同样被更新了。所有的分支都同步了!"
|
||||
"过去了, 远程仓库接收了 `C2`,远程仓库中的 `main` 分支也被更新到指向 `C2` 了,我们的远程分支 (o/main) 也同样被更新了。所有的分支都同步了!"
|
||||
],
|
||||
"command": "git push",
|
||||
"beforeCommand": "git clone; git commit"
|
||||
|
@ -403,7 +403,7 @@ exports.level = {
|
|||
"Hier haben wir ein paar Änderungen, die auf dem Remote noch fehlen. Und hoch damit!"
|
||||
],
|
||||
"afterMarkdowns": [
|
||||
"Na bitte -- das Remote hat den Commit `C2` bekommen, der `main` auf dem Remote ist entsprechend aktualisiert worden und unsere *eigene* Abbildung des `main` auf dem Remote namens `o/master` wurde auch aktualisiert. Alles im Lot!"
|
||||
"Na bitte -- das Remote hat den Commit `C2` bekommen, der `main` auf dem Remote ist entsprechend aktualisiert worden und unsere *eigene* Abbildung des `main` auf dem Remote namens `o/main` wurde auch aktualisiert. Alles im Lot!"
|
||||
],
|
||||
"command": "git push",
|
||||
"beforeCommand": "git clone; git commit"
|
||||
|
@ -446,7 +446,7 @@ exports.level = {
|
|||
"Здесь у нас имеются изменения, которых нет в удалённом репозитории. Давайте же закачаем их туда!"
|
||||
],
|
||||
"afterMarkdowns": [
|
||||
"Вот так - удалённый репозиторий получил новый коммит `C2`, ветка `main` на удалённом репозитории теперь указывает на `C2`, и наше *собственное* локальное отображение удалённого репозитория (`o/master`) изменилось соответственно. Всё синхронизировалось!"
|
||||
"Вот так - удалённый репозиторий получил новый коммит `C2`, ветка `main` на удалённом репозитории теперь указывает на `C2`, и наше *собственное* локальное отображение удалённого репозитория (`o/main`) изменилось соответственно. Всё синхронизировалось!"
|
||||
],
|
||||
"command": "git push",
|
||||
"beforeCommand": "git clone; git commit"
|
||||
|
@ -489,7 +489,7 @@ exports.level = {
|
|||
"ここにリモートにはないいくつかの変更点があります。これをアップロードしてみましょう!"
|
||||
],
|
||||
"afterMarkdowns": [
|
||||
"さて、いってみましょう -- リモートはコミット`C2`を受け取り、リモート上の`main`ブランチは`C2`の位置に更新され、私たち*自身*のリモートブランチ(`o/master`)も良い具合に更新されました。全てが同期されました!"
|
||||
"さて、いってみましょう -- リモートはコミット`C2`を受け取り、リモート上の`main`ブランチは`C2`の位置に更新され、私たち*自身*のリモートブランチ(`o/main`)も良い具合に更新されました。全てが同期されました!"
|
||||
],
|
||||
"command": "git push",
|
||||
"beforeCommand": "git clone; git commit"
|
||||
|
@ -532,7 +532,7 @@ exports.level = {
|
|||
"Ось ми маємо деякі зміни яких нема в віддаленому сховищі. Надішлімо їх!"
|
||||
],
|
||||
"afterMarkdowns": [
|
||||
"Ось, маєш -- віддалене сховище отримало `C2`, гілку `main` на ньому було оновлено й тепер вона посилається на `C2`, а наше *власне* відображення віддаленого репо (`o/master`) було також оновлено. Все синхронізовано!"
|
||||
"Ось, маєш -- віддалене сховище отримало `C2`, гілку `main` на ньому було оновлено й тепер вона посилається на `C2`, а наше *власне* відображення віддаленого репо (`o/main`) було також оновлено. Все синхронізовано!"
|
||||
],
|
||||
"command": "git push",
|
||||
"beforeCommand": "git clone; git commit"
|
||||
|
@ -575,7 +575,7 @@ exports.level = {
|
|||
"여기 원격저장소에는 없는 변경이 있습니다. 이것들을 업로드 해 봅시다!"
|
||||
],
|
||||
"afterMarkdowns": [
|
||||
"자 됬습니다 -- 원격 저장소가 커밋 `C2`를 받았고, 원격 저장소의 브랜치 `main`가 `C2`라는 지점까지 갱신 되었습니다. 그리고 원격 저장소의 반영인 *우리의* 원격 브랜치 (`o/master`)또한 잘 갱신 되었습니다. 모든게 동기화되어 있습니다!"
|
||||
"자 됬습니다 -- 원격 저장소가 커밋 `C2`를 받았고, 원격 저장소의 브랜치 `main`가 `C2`라는 지점까지 갱신 되었습니다. 그리고 원격 저장소의 반영인 *우리의* 원격 브랜치 (`o/main`)또한 잘 갱신 되었습니다. 모든게 동기화되어 있습니다!"
|
||||
],
|
||||
"command": "git push",
|
||||
"beforeCommand": "git clone; git commit"
|
||||
|
@ -618,7 +618,7 @@ exports.level = {
|
|||
"Ở đây ta có một vài thay đổi mà kho chứa từ xa không có. Hãy tải chúng lên!"
|
||||
],
|
||||
"afterMarkdowns": [
|
||||
"Đó -- kho chứa từ xa đã nhận được commit `C2`, nhánh `main` ở kho chứa từ xa đã được cập nhật lên `C2`, và phản chiếu nhánh từ xa *của ta* (`o/master`) cũng được cập nhật luôn. Mọi thứ đã đồng bộ!"
|
||||
"Đó -- kho chứa từ xa đã nhận được commit `C2`, nhánh `main` ở kho chứa từ xa đã được cập nhật lên `C2`, và phản chiếu nhánh từ xa *của ta* (`o/main`) cũng được cập nhật luôn. Mọi thứ đã đồng bộ!"
|
||||
],
|
||||
"command": "git push",
|
||||
"beforeCommand": "git clone; git commit"
|
||||
|
@ -661,7 +661,7 @@ exports.level = {
|
|||
"Tu imamo nekaj sprememb, ki jih oddaljen repo nima. Dajmo jih naložiti!"
|
||||
],
|
||||
"afterMarkdowns": [
|
||||
"Tako je -- oddaljen repo je prejel commit `C2`, branch `main` na oddaljenem repotu je bil posodobljen, da kaže na `C2` in naš *lasten* prikaz oddaljenega repota (`o/master`) je bil prav tako posodobljen. Vse je usklajeno!"
|
||||
"Tako je -- oddaljen repo je prejel commit `C2`, branch `main` na oddaljenem repotu je bil posodobljen, da kaže na `C2` in naš *lasten* prikaz oddaljenega repota (`o/main`) je bil prav tako posodobljen. Vse je usklajeno!"
|
||||
],
|
||||
"command": "git push",
|
||||
"beforeCommand": "git clone; git commit"
|
||||
|
|
|
@ -64,11 +64,11 @@ exports.level = {
|
|||
"markdowns": [
|
||||
"What is a `<place>` parameter you say? We'll dive into the specifics soon, but first an example. Issuing the command:",
|
||||
"",
|
||||
"`git push origin master`",
|
||||
"`git push origin main`",
|
||||
"",
|
||||
"translates to this in English:",
|
||||
"",
|
||||
"*Go to the branch named \"master\" in my repository, grab all the commits, and then go to the branch \"master\" on the remote named \"origin\". Place whatever commits are missing on that branch and then tell me when you're done.*",
|
||||
"*Go to the branch named \"main\" in my repository, grab all the commits, and then go to the branch \"main\" on the remote named \"origin\". Place whatever commits are missing on that branch and then tell me when you're done.*",
|
||||
"",
|
||||
"By specifying `main` as the \"place\" argument, we told git where the commits will *come from* and where the commits *will go*. It's essentially the \"place\" or \"location\" to synchronize between the two repositories.",
|
||||
"",
|
||||
|
@ -85,7 +85,7 @@ exports.level = {
|
|||
"afterMarkdowns": [
|
||||
"There we go! `main` got updated on the remote since we specified those arguments."
|
||||
],
|
||||
"command": "git checkout C0; git push origin master",
|
||||
"command": "git checkout C0; git push origin main",
|
||||
"beforeCommand": "git clone; git commit"
|
||||
}
|
||||
},
|
||||
|
@ -139,11 +139,11 @@ exports.level = {
|
|||
"markdowns": [
|
||||
"Qu'est ce que ce paramètre `<place>` ? Avant de passer à l'explication, voyons d'abord un exemple. La commande suivante :",
|
||||
"",
|
||||
"`git push origin master`",
|
||||
"`git push origin main`",
|
||||
"",
|
||||
"peut se traduire en français par :",
|
||||
"",
|
||||
"*Va dans la branche \"master\" de mon dépôt, récupère tous les commits, et ensuite va dans la branche distante \"master\" sur le dépôt nommé \"origin\". Envoie tous les commits qui lui manquent sur cette branche distante puis préviens-moi quand c'est terminé.*",
|
||||
"*Va dans la branche \"main\" de mon dépôt, récupère tous les commits, et ensuite va dans la branche distante \"main\" sur le dépôt nommé \"origin\". Envoie tous les commits qui lui manquent sur cette branche distante puis préviens-moi quand c'est terminé.*",
|
||||
"",
|
||||
"En spécifiant `main` comme argument `<place>`, nous avons dit à git *d'où* les commits venaient et où ils *allaient*. C'est en fait \"l'emplacement\" à synchroniser entre les deux dépôts.",
|
||||
"",
|
||||
|
@ -160,7 +160,7 @@ exports.level = {
|
|||
"afterMarkdowns": [
|
||||
"Voilà ! `main` a été mise à jour puisque nous avons spécifié ces arguments."
|
||||
],
|
||||
"command": "git checkout C0; git push origin master",
|
||||
"command": "git checkout C0; git push origin main",
|
||||
"beforeCommand": "git clone; git commit"
|
||||
}
|
||||
},
|
||||
|
@ -211,11 +211,11 @@ exports.level = {
|
|||
"markdowns": [
|
||||
"¿Qué será este parámetro `<lugar>`, te preguntarás? Ya vamos a entrar en detalle, pero primero un ejemplo. Correr el comando:",
|
||||
"",
|
||||
"`git push origin master`",
|
||||
"`git push origin main`",
|
||||
"",
|
||||
"se traduce así al español:",
|
||||
"",
|
||||
"*Andá a la rama llamada \"master\" en mi repositorio, agarrá todos los commits, y después andá a la rama \"master\" del remoto llamado \"origin\". Aplicá ahí todos los commits que falten, y avisame cuando termines.*",
|
||||
"*Andá a la rama llamada \"main\" en mi repositorio, agarrá todos los commits, y después andá a la rama \"main\" del remoto llamado \"origin\". Aplicá ahí todos los commits que falten, y avisame cuando termines.*",
|
||||
"",
|
||||
"Especificando `main` como el parámetro \"lugar\", le dijimos a git de dónde traer los commits, y a dónde mandarlos. Es, básicamente, el \"lugar\" o \"ubicación\" que sincronizar entre ambos repositorios.",
|
||||
"",
|
||||
|
@ -232,7 +232,7 @@ exports.level = {
|
|||
"afterMarkdowns": [
|
||||
"¡Ahí está! Se actualizó `main` en el remoto, porque especificamos esos parámetros."
|
||||
],
|
||||
"command": "git checkout C0; git push origin master",
|
||||
"command": "git checkout C0; git push origin main",
|
||||
"beforeCommand": "git clone; git commit"
|
||||
}
|
||||
},
|
||||
|
@ -283,11 +283,11 @@ exports.level = {
|
|||
"markdowns": [
|
||||
"¿Qué será este parámetro `<lugar>`, te preguntarás? Vamos a entrar en detalle, pero primero un ejemplo. Ejecutar el comando:",
|
||||
"",
|
||||
"`git push origin master`",
|
||||
"`git push origin main`",
|
||||
"",
|
||||
"se traduce así al español:",
|
||||
"",
|
||||
"*Vete a la rama llamada \"master\" en mi repositorio, coge todos los commits, y después vete a la rama \"master\" del remoto llamado \"origin\". Copia ahí todos los commits que falten, y avísame cuando termines.*",
|
||||
"*Vete a la rama llamada \"main\" en mi repositorio, coge todos los commits, y después vete a la rama \"main\" del remoto llamado \"origin\". Copia ahí todos los commits que falten, y avísame cuando termines.*",
|
||||
"",
|
||||
"Especificando `main` como el parámetro \"lugar\", le dijimos a git de dónde traer los commits, y a dónde mandarlos. Es, básicamente, el \"lugar\" o \"ubicación\" que sincronizar entre ambos repositorios.",
|
||||
"",
|
||||
|
@ -304,7 +304,7 @@ exports.level = {
|
|||
"afterMarkdowns": [
|
||||
"¡Ahí está! Se actualizó `main` en el remoto, porque especificamos esos parámetros."
|
||||
],
|
||||
"command": "git checkout C0; git push origin master",
|
||||
"command": "git checkout C0; git push origin main",
|
||||
"beforeCommand": "git clone; git commit"
|
||||
}
|
||||
},
|
||||
|
@ -355,11 +355,11 @@ exports.level = {
|
|||
"markdowns": [
|
||||
"Você deve estar se perguntando: o que é esse parâmetro `<lugar>`? Vamos discutir as especifidades em breve, mas vejamos primeiro um exemplo. Executar o comando:",
|
||||
"",
|
||||
"`git push origin master`",
|
||||
"`git push origin main`",
|
||||
"",
|
||||
"pode ser traduzido para o seguinte em Português:",
|
||||
"",
|
||||
"*Vá ao ramo chamado \"master\" no meu repositório local, pegue todos os commits, então vá ao ramo \"master\" no repositório remoto chamado \"origin\". Coloque quaisquer commits que estiverem faltando nesse ramo, e então me diga quando estiver pronto.*",
|
||||
"*Vá ao ramo chamado \"main\" no meu repositório local, pegue todos os commits, então vá ao ramo \"main\" no repositório remoto chamado \"origin\". Coloque quaisquer commits que estiverem faltando nesse ramo, e então me diga quando estiver pronto.*",
|
||||
"",
|
||||
"Especificando `main` como parâmetro \"lugar\", dizemos ao Git de onde os commits *vão vir* e para onde os commits *irão*. É essencialmente o \"lugar\" onde sincronizar entre os dois repositórios.",
|
||||
"",
|
||||
|
@ -376,7 +376,7 @@ exports.level = {
|
|||
"afterMarkdowns": [
|
||||
"Aqui vamos nós! O `main` foi atualizado no repositório remoto, já que especificamos os parâmetros."
|
||||
],
|
||||
"command": "git checkout C0; git push origin master",
|
||||
"command": "git checkout C0; git push origin main",
|
||||
"beforeCommand": "git clone; git commit"
|
||||
}
|
||||
},
|
||||
|
@ -427,11 +427,11 @@ exports.level = {
|
|||
"markdowns": [
|
||||
"¿Qué será este parámetro `<lugar>`, fixécheste esa pregunta? Xa imos entrar en detalle, pero primeiro un exemplo. Executa o comando:",
|
||||
"",
|
||||
"`git push origin master`",
|
||||
"`git push origin main`",
|
||||
"",
|
||||
"tradúcese así ó galego:",
|
||||
"",
|
||||
"*Vai á rama chamada \"master\" no meu repositorio, colle tódolos commits, e despois vai á rama \"master\" do remoto chamado \"origin\". Aplica ahí tódolos commits que falten, e avísame cando remates.*",
|
||||
"*Vai á rama chamada \"main\" no meu repositorio, colle tódolos commits, e despois vai á rama \"main\" do remoto chamado \"origin\". Aplica ahí tódolos commits que falten, e avísame cando remates.*",
|
||||
"",
|
||||
"Indicando `main` como o parámetro \"lugar\", dixémoslle a git ónde traer os commits, e ónde mandalos. É básicamente, o \"lugar\" ou \"ubicación\" que sincroniza entre ámbolos dous repositorios.",
|
||||
"",
|
||||
|
@ -448,7 +448,7 @@ exports.level = {
|
|||
"afterMarkdowns": [
|
||||
"¡Ahí o tes! Actualizouse `main` no remoto, porque especificamos eses parámetros."
|
||||
],
|
||||
"command": "git checkout C0; git push origin master",
|
||||
"command": "git checkout C0; git push origin main",
|
||||
"beforeCommand": "git clone; git commit"
|
||||
}
|
||||
},
|
||||
|
@ -499,11 +499,11 @@ exports.level = {
|
|||
"markdowns": [
|
||||
"`<place>` 這個參數表示什麼? 我們等一下會提到細節,但是先來看一個例子,執行以下的指令:",
|
||||
"",
|
||||
"`git push origin master`",
|
||||
"`git push origin main`",
|
||||
"",
|
||||
"將這段解釋成中文:",
|
||||
"",
|
||||
"*先到我的 repo 中的 \"master\" branch,抓下所有的 commit,然後到叫作 \"origin\" 的 remote 的 \"master\" branch,檢查 remote 的 commit 有沒有跟我的 repo 一致,如果沒有,就更新。*",
|
||||
"*先到我的 repo 中的 \"main\" branch,抓下所有的 commit,然後到叫作 \"origin\" 的 remote 的 \"main\" branch,檢查 remote 的 commit 有沒有跟我的 repo 一致,如果沒有,就更新。*",
|
||||
"",
|
||||
"將 `main` 當作 \"place\" 這個參數,我們告訴 git 這些 commit 是*從哪裡來的*,而且它們要*往哪裡去*。對於要同步兩個 repo, \"place\" 或者是 \"location\" 是非常重要的。",
|
||||
"",
|
||||
|
@ -520,7 +520,7 @@ exports.level = {
|
|||
"afterMarkdowns": [
|
||||
"我說的沒錯吧!因為我們加上了參數,所以在 remote 上的 `main` branch 更新了。"
|
||||
],
|
||||
"command": "git checkout C0; git push origin master",
|
||||
"command": "git checkout C0; git push origin main",
|
||||
"beforeCommand": "git clone; git commit"
|
||||
}
|
||||
},
|
||||
|
@ -571,13 +571,13 @@ exports.level = {
|
|||
"markdowns": [
|
||||
"`<place>` 参数是什么意思呢?我们稍后会深入其中的细节, 先看看例子, 这个命令是:",
|
||||
"",
|
||||
"`git push origin master`",
|
||||
"`git push origin main`",
|
||||
"",
|
||||
"把这个命令翻译过来就是:",
|
||||
"",
|
||||
"*切到本地仓库中的“master”分支,获取所有的提交,再到远程仓库“origin”中找到“master”分支,将远程仓库中没有的提交记录都添加上去,搞定之后告诉我。*",
|
||||
"*切到本地仓库中的“main”分支,获取所有的提交,再到远程仓库“origin”中找到“main”分支,将远程仓库中没有的提交记录都添加上去,搞定之后告诉我。*",
|
||||
"",
|
||||
"我们通过“place”参数来告诉 Git 提交记录来自于 master, 要推送到远程仓库中的 master。它实际就是要同步的两个仓库的位置。",
|
||||
"我们通过“place”参数来告诉 Git 提交记录来自于 main, 要推送到远程仓库中的 main。它实际就是要同步的两个仓库的位置。",
|
||||
"",
|
||||
"需要注意的是,因为我们通过指定参数告诉了 Git 所有它需要的信息, 所以它就忽略了我们所检出的分支的属性!"
|
||||
]
|
||||
|
@ -592,7 +592,7 @@ exports.level = {
|
|||
"afterMarkdowns": [
|
||||
"好了! 通过指定参数, 远程仓库中的 `main` 分支得到了更新。"
|
||||
],
|
||||
"command": "git checkout C0; git push origin master",
|
||||
"command": "git checkout C0; git push origin main",
|
||||
"beforeCommand": "git clone; git commit"
|
||||
}
|
||||
},
|
||||
|
@ -646,7 +646,7 @@ exports.level = {
|
|||
"markdowns": [
|
||||
"Was \"Ort\" sein soll, fragst du? Das klären wir später genau, schauen wir uns zunächst ein Beispiel an:",
|
||||
"",
|
||||
"`git push origin master`",
|
||||
"`git push origin main`",
|
||||
"",
|
||||
"Das bedeutet im Klartext:",
|
||||
"",
|
||||
|
@ -667,7 +667,7 @@ exports.level = {
|
|||
"afterMarkdowns": [
|
||||
"Da haben wir's! `main` wurde auf dem Remote aktualisiert, weil wir beide Optionen angegeben haben."
|
||||
],
|
||||
"command": "git checkout C0; git push origin master",
|
||||
"command": "git checkout C0; git push origin main",
|
||||
"beforeCommand": "git clone; git commit"
|
||||
}
|
||||
},
|
||||
|
@ -718,11 +718,11 @@ exports.level = {
|
|||
"markdowns": [
|
||||
"Что за такой параметр `<целевая_ветка>`? Мы узнаем об этом через секунду, а пока что рассмотрим пример. Допустим, что мы выполняем такую команду:",
|
||||
"",
|
||||
"`git push origin master`",
|
||||
"`git push origin main`",
|
||||
"",
|
||||
"дословный перевод с английского будет таким:",
|
||||
"",
|
||||
"*Перейди в ветку с именем \"master\" в моём локальном репозитории, возьми все коммиты и затем перейди на ветку \"master\" на удалённом репозитории \"origin.\". На эту удалённую ветку скопируй все отсутствующие коммиты, которые есть у меня, и скажи, когда ты закончишь.*",
|
||||
"*Перейди в ветку с именем \"main\" в моём локальном репозитории, возьми все коммиты и затем перейди на ветку \"main\" на удалённом репозитории \"origin.\". На эту удалённую ветку скопируй все отсутствующие коммиты, которые есть у меня, и скажи, когда ты закончишь.*",
|
||||
"",
|
||||
"Указывая `main` в качестве аргумента \"целевая_ветка\", мы тем самым говорим git-у откуда будут *приходить* и *уходить* наши коммиты. Аргумент \"целевая_ветка\" или \"местонахождение\" - это синхронизация между двумя репозиториями.",
|
||||
"",
|
||||
|
@ -739,7 +739,7 @@ exports.level = {
|
|||
"afterMarkdowns": [
|
||||
"Вот так! Мы обновили `main` на удалённом репозитории, принудительно указав аргументы в push."
|
||||
],
|
||||
"command": "git checkout C0; git push origin master",
|
||||
"command": "git checkout C0; git push origin main",
|
||||
"beforeCommand": "git clone; git commit"
|
||||
}
|
||||
},
|
||||
|
@ -793,11 +793,11 @@ exports.level = {
|
|||
"markdowns": [
|
||||
"`<place>`인자가 무엇을 의미할것 같나요? 세부사항은 알아보기 전에 예시부터 봅시다. 다음 명령어를 보세요:",
|
||||
"",
|
||||
"`git push origin master`",
|
||||
"`git push origin main`",
|
||||
"",
|
||||
"해석해 보면:",
|
||||
"",
|
||||
"*내 저장소에 있는 \"master\"라는 이름의 브랜치로 가서 모든 커밋들을 수집합니다, 그다음 \"origin\"의 \"master\"브랜치로 가서 이 브랜치에 부족한 커밋들을 채워 넣고 완료 되면 알려줍니다.*",
|
||||
"*내 저장소에 있는 \"main\"라는 이름의 브랜치로 가서 모든 커밋들을 수집합니다, 그다음 \"origin\"의 \"main\"브랜치로 가서 이 브랜치에 부족한 커밋들을 채워 넣고 완료 되면 알려줍니다.*",
|
||||
"",
|
||||
"`main`를 \"place\"인자로 지정해서 우리가 git에게 *어디서부터* 커밋이 오는지, 그리고 *어디로* 커밋이 가야하는지 알려줍니다. 두 저장소간에 동기화 작업을 할 \"장소\"를 지정해 주는것이라고 볼 수 있습니다.",
|
||||
"",
|
||||
|
@ -814,7 +814,7 @@ exports.level = {
|
|||
"afterMarkdowns": [
|
||||
"됬네요! 지정해준 인자들에 의해 원격 저장소의 `main`가 갱신 되었습니다."
|
||||
],
|
||||
"command": "git checkout C0; git push origin master",
|
||||
"command": "git checkout C0; git push origin main",
|
||||
"beforeCommand": "git clone; git commit"
|
||||
}
|
||||
},
|
||||
|
@ -868,11 +868,11 @@ exports.level = {
|
|||
"markdowns": [
|
||||
"Ви спитаєте, що таке аргумент `<place>`? Ми скоро вдамося в детальні пояснення, але спочатку -- приклад. Виконання команди:",
|
||||
"",
|
||||
"`git push origin master`",
|
||||
"`git push origin main`",
|
||||
"",
|
||||
"буквально перекладається як:",
|
||||
"",
|
||||
"*Піди в гілку, що називається \"master\" в моєму репозиторії, візьми всі коміти, піди у віддалений \"master\", що називається \"origin\". Додай ті коміти, яких немає в цій гілці і надрукуй, що саме ти зробив.*",
|
||||
"*Піди в гілку, що називається \"main\" в моєму репозиторії, візьми всі коміти, піди у віддалений \"main\", що називається \"origin\". Додай ті коміти, яких немає в цій гілці і надрукуй, що саме ти зробив.*",
|
||||
"",
|
||||
"Вказуючи `main` в якості аргумента \"place\", ми сказали git-у, *звідки* взяти коміти і *куди* їх додати. (\"Place\") - фактично точка синхронізації двох репозиторіїв.",
|
||||
"",
|
||||
|
@ -889,7 +889,7 @@ exports.level = {
|
|||
"afterMarkdowns": [
|
||||
"Ось так! `main` у віддаленому репозиторії оновився, оскільки ми вказали його в аргументах."
|
||||
],
|
||||
"command": "git checkout C0; git push origin master",
|
||||
"command": "git checkout C0; git push origin main",
|
||||
"beforeCommand": "git clone; git commit"
|
||||
}
|
||||
},
|
||||
|
@ -943,11 +943,11 @@ exports.level = {
|
|||
"markdowns": [
|
||||
"Tham số `<vị trí>` là gì vậy? Chúng ta sẽ đi sâu vào chi tiết sau sau, hãy xem ví dụ trước. Đưa ra câu lệnh:",
|
||||
"",
|
||||
"`git push origin master`",
|
||||
"`git push origin main`",
|
||||
"",
|
||||
"được dịch lại là:",
|
||||
"",
|
||||
"*Chuyển sang nhánh \"master\" trong kho lưu trữ cục bộ, nhận tất cả các commit và tìm nhánh \"master\" trong kho chứa từ xa tên là \"origin\". Thêm tất cả các commit không có trong nhánh đó và báo cho tôi biết khi nào hoàn tất.*",
|
||||
"*Chuyển sang nhánh \"main\" trong kho lưu trữ cục bộ, nhận tất cả các commit và tìm nhánh \"main\" trong kho chứa từ xa tên là \"origin\". Thêm tất cả các commit không có trong nhánh đó và báo cho tôi biết khi nào hoàn tất.*",
|
||||
"",
|
||||
"Bằng cách chỉ định `main` trong tham số \"vị trí\",ta báo với git nơi mà commit *xuất phát* và nơi chúng *sẽ đến*. Về căn bản nó là \"địa điểm\" để đồng bộ hóa 2 kho chứa.",
|
||||
"",
|
||||
|
@ -964,7 +964,7 @@ exports.level = {
|
|||
"afterMarkdowns": [
|
||||
"Được rồi! Bằng cách chỉ định các tham số, nhánh `main` trong kho lưu trữ từ xa đã được cập nhật."
|
||||
],
|
||||
"command": "git checkout C0; git push origin master",
|
||||
"command": "git checkout C0; git push origin main",
|
||||
"beforeCommand": "git clone; git commit"
|
||||
}
|
||||
},
|
||||
|
@ -1018,11 +1018,11 @@ exports.level = {
|
|||
"markdowns": [
|
||||
"Kaj je `<place>` parameter praviš? Kmalu bomo zaplavali v podrobnosti, ampak najprej primer. Izvedba ukaza:",
|
||||
"",
|
||||
"`git push origin master`",
|
||||
"`git push origin main`",
|
||||
"",
|
||||
"se v slovenščini prevede v:",
|
||||
"",
|
||||
"*Pojdi na branch poimenovan \"master\" na mojem repozitoriju, zgrabi vse commite in nato pojdi na branch \"master\" na oddaljenem repotu poimenovanem \"origin\". Postavi vse commite, ki manjkajo na branch in me obvesti, ko končaš.*",
|
||||
"*Pojdi na branch poimenovan \"main\" na mojem repozitoriju, zgrabi vse commite in nato pojdi na branch \"main\" na oddaljenem repotu poimenovanem \"origin\". Postavi vse commite, ki manjkajo na branch in me obvesti, ko končaš.*",
|
||||
"",
|
||||
"Z določanjem `masterja` kot \"place\" argument, smo povedali gitu iz kje bodo commiti *prišli* in kam bodo commiti *šli*. V bistvu je to \"mesto\" oziroma \"lokacija\" za uskladitev med dvema repozitorijema.",
|
||||
"",
|
||||
|
@ -1039,7 +1039,7 @@ exports.level = {
|
|||
"afterMarkdowns": [
|
||||
"Evo ga! `main` je bil posodobljen na oddaljenem repotu, ker smo podali te argumente."
|
||||
],
|
||||
"command": "git checkout C0; git push origin master",
|
||||
"command": "git checkout C0; git push origin main",
|
||||
"beforeCommand": "git clone; git commit"
|
||||
}
|
||||
},
|
||||
|
|
|
@ -78,7 +78,7 @@ exports.level = {
|
|||
"afterMarkdowns": [
|
||||
"Woah! That's a pretty trippy command but it makes sense -- git resolved `foo^` into a location, uploaded whatever commits that weren't present yet on the remote, and then updated destination."
|
||||
],
|
||||
"command": "git push origin foo^:master",
|
||||
"command": "git push origin foo^:main",
|
||||
"beforeCommand": "git clone; go -b foo; git commit; git commit"
|
||||
}
|
||||
},
|
||||
|
@ -91,7 +91,7 @@ exports.level = {
|
|||
"afterMarkdowns": [
|
||||
"Sweet, that's pretty slick :D"
|
||||
],
|
||||
"command": "git push origin master:newBranch",
|
||||
"command": "git push origin main:newBranch",
|
||||
"beforeCommand": "git clone; git commit"
|
||||
}
|
||||
},
|
||||
|
@ -148,7 +148,7 @@ exports.level = {
|
|||
"afterMarkdowns": [
|
||||
"Woahou ! C'est une commande très alambiquée mais qui a du sens : git résoud `foo^` en un emplacement, envoie tous les commits qui n'étaient pas encore présents sur le dépôt distant, et met ensuite à jour la branche de destination."
|
||||
],
|
||||
"command": "git push origin foo^:master",
|
||||
"command": "git push origin foo^:main",
|
||||
"beforeCommand": "git clone; go -b foo; git commit; git commit"
|
||||
}
|
||||
},
|
||||
|
@ -161,7 +161,7 @@ exports.level = {
|
|||
"afterMarkdowns": [
|
||||
"Cool, c'est habile :D"
|
||||
],
|
||||
"command": "git push origin master:newBranch",
|
||||
"command": "git push origin main:newBranch",
|
||||
"beforeCommand": "git clone; git commit"
|
||||
}
|
||||
},
|
||||
|
@ -218,7 +218,7 @@ exports.level = {
|
|||
"afterMarkdowns": [
|
||||
"¡Woow! Ese commando es bastante loco, pero tiene sentido: git resolvió `foo^` a una ubicación, subió cualquier commit de ahí que aún no estuviera en el remoto, y luego actualizó el destino."
|
||||
],
|
||||
"command": "git push origin foo^:master",
|
||||
"command": "git push origin foo^:main",
|
||||
"beforeCommand": "git clone; go -b foo; git commit; git commit"
|
||||
}
|
||||
},
|
||||
|
@ -231,7 +231,7 @@ exports.level = {
|
|||
"afterMarkdowns": [
|
||||
"Genial, simplemente fluye :D"
|
||||
],
|
||||
"command": "git push origin master:newBranch",
|
||||
"command": "git push origin main:newBranch",
|
||||
"beforeCommand": "git clone; git commit"
|
||||
}
|
||||
},
|
||||
|
@ -288,7 +288,7 @@ exports.level = {
|
|||
"afterMarkdowns": [
|
||||
"¡Vaya! Ese commando es bastante rompedor, pero tiene sentido: git resolvió `foo^` a una ubicación, subió cualquier commit de ahí que aún no estuviera en el remoto, y luego actualizó el destino."
|
||||
],
|
||||
"command": "git push origin foo^:master",
|
||||
"command": "git push origin foo^:main",
|
||||
"beforeCommand": "git clone; go -b foo; git commit; git commit"
|
||||
}
|
||||
},
|
||||
|
@ -301,7 +301,7 @@ exports.level = {
|
|||
"afterMarkdowns": [
|
||||
"Genial, simplemente fluye :D"
|
||||
],
|
||||
"command": "git push origin master:newBranch",
|
||||
"command": "git push origin main:newBranch",
|
||||
"beforeCommand": "git clone; git commit"
|
||||
}
|
||||
},
|
||||
|
@ -358,7 +358,7 @@ exports.level = {
|
|||
"afterMarkdowns": [
|
||||
"Uau! Esse comando é bastante viajado, mas ele faz sentido -- o Git entendeu a referência `foo^`, enviou quaisquer commits que não estavam presentes no repositório remoto, e então atualizou o destino."
|
||||
],
|
||||
"command": "git push origin foo^:master",
|
||||
"command": "git push origin foo^:main",
|
||||
"beforeCommand": "git clone; go -b foo; git commit; git commit"
|
||||
}
|
||||
},
|
||||
|
@ -371,7 +371,7 @@ exports.level = {
|
|||
"afterMarkdowns": [
|
||||
"Doce, isso é muito bom :D"
|
||||
],
|
||||
"command": "git push origin master:newBranch",
|
||||
"command": "git push origin main:newBranch",
|
||||
"beforeCommand": "git clone; git commit"
|
||||
}
|
||||
},
|
||||
|
@ -428,7 +428,7 @@ exports.level = {
|
|||
"afterMarkdowns": [
|
||||
"¡Woow! Ese commando é unha tolemia, pero ten sentido: git resolveu `foo^` a unha ubicación, subiu calquera commit de ahí que aún non estivera no remoto, e logo actualizou o destino."
|
||||
],
|
||||
"command": "git push origin foo^:master",
|
||||
"command": "git push origin foo^:main",
|
||||
"beforeCommand": "git clone; go -b foo; git commit; git commit"
|
||||
}
|
||||
},
|
||||
|
@ -441,7 +441,7 @@ exports.level = {
|
|||
"afterMarkdowns": [
|
||||
"Xenial, sinxelamente tira para adiante."
|
||||
],
|
||||
"command": "git push origin master:newBranch",
|
||||
"command": "git push origin main:newBranch",
|
||||
"beforeCommand": "git clone; git commit"
|
||||
}
|
||||
},
|
||||
|
@ -496,9 +496,9 @@ exports.level = {
|
|||
"記住, `source` 表示任意可以被 git 辨識的位置:"
|
||||
],
|
||||
"afterMarkdowns": [
|
||||
"哇!這實在是一個很花俏的指令但是確很合理,git 把 `foo^` 解讀成一個位置,並且 push 該位置的 commit 到目前 remote 的 master branch。"
|
||||
"哇!這實在是一個很花俏的指令但是確很合理,git 把 `foo^` 解讀成一個位置,並且 push 該位置的 commit 到目前 remote 的 main branch。"
|
||||
],
|
||||
"command": "git push origin foo^:master",
|
||||
"command": "git push origin foo^:main",
|
||||
"beforeCommand": "git clone; go -b foo; git commit; git commit"
|
||||
}
|
||||
},
|
||||
|
@ -511,7 +511,7 @@ exports.level = {
|
|||
"afterMarkdowns": [
|
||||
"太讚了,實在非常地簡單:D"
|
||||
],
|
||||
"command": "git push origin master:newBranch",
|
||||
"command": "git push origin main:newBranch",
|
||||
"beforeCommand": "git clone; git commit"
|
||||
}
|
||||
},
|
||||
|
@ -568,7 +568,7 @@ exports.level = {
|
|||
"afterMarkdowns": [
|
||||
"这是个另人困惑的命令,但是它确实是可以运行的 —— Git 将 `foo^` 解析为一个位置,上传所有未被包含到远程仓库里 `main` 分支中的提交记录。"
|
||||
],
|
||||
"command": "git push origin foo^:master",
|
||||
"command": "git push origin foo^:main",
|
||||
"beforeCommand": "git clone; go -b foo; git commit; git commit"
|
||||
}
|
||||
},
|
||||
|
@ -581,7 +581,7 @@ exports.level = {
|
|||
"afterMarkdowns": [
|
||||
"很赞吧!它是不是很聪明?! :D"
|
||||
],
|
||||
"command": "git push origin master:newBranch",
|
||||
"command": "git push origin main:newBranch",
|
||||
"beforeCommand": "git clone; git commit"
|
||||
}
|
||||
},
|
||||
|
@ -638,7 +638,7 @@ exports.level = {
|
|||
"afterMarkdowns": [
|
||||
"Boah! Das ist ein ziemlich abgefahrener Befehl gewesen, aber er ist sinnvoll -- Git hat `foo^` zu einem Commit aufgelöst, alle Commits, die bis zu einschließlich diesem noch nicht auf dem Server waren, hochgeladen und dann dort das Ziel aktualisiert."
|
||||
],
|
||||
"command": "git push origin foo^:master",
|
||||
"command": "git push origin foo^:main",
|
||||
"beforeCommand": "git clone; go -b foo; git commit; git commit"
|
||||
}
|
||||
},
|
||||
|
@ -651,7 +651,7 @@ exports.level = {
|
|||
"afterMarkdowns": [
|
||||
"Schick, das ist ziemlich praktisch. :D"
|
||||
],
|
||||
"command": "git push origin master:newBranch",
|
||||
"command": "git push origin main:newBranch",
|
||||
"beforeCommand": "git clone; git commit"
|
||||
}
|
||||
},
|
||||
|
@ -708,7 +708,7 @@ exports.level = {
|
|||
"afterMarkdowns": [
|
||||
"Вау! Это довольно нетривиальная команда, однако она имеет смысл - git видит в `foo^` не что иное, как местоположение, закачивает все коммиты, которые не присутствуют на удалённом репозитории, и затем обновляет получателя."
|
||||
],
|
||||
"command": "git push origin foo^:master",
|
||||
"command": "git push origin foo^:main",
|
||||
"beforeCommand": "git clone; go -b foo; git commit; git commit"
|
||||
}
|
||||
},
|
||||
|
@ -721,7 +721,7 @@ exports.level = {
|
|||
"afterMarkdowns": [
|
||||
"Класс! Довольно легко! :D"
|
||||
],
|
||||
"command": "git push origin master:newBranch",
|
||||
"command": "git push origin main:newBranch",
|
||||
"beforeCommand": "git clone; git commit"
|
||||
}
|
||||
},
|
||||
|
@ -778,7 +778,7 @@ exports.level = {
|
|||
"afterMarkdowns": [
|
||||
"워 뭔가 잘 안쓸것 같은 명령이지만 잘 됩니다 -- git은 `foo^`의 위치를 알아내서 원격 저장소에 아직 반영되지 않은 커밋들을 업로드하고 destination 브랜치를 갱신했습니다."
|
||||
],
|
||||
"command": "git push origin foo^:master",
|
||||
"command": "git push origin foo^:main",
|
||||
"beforeCommand": "git clone; go -b foo; git commit; git commit"
|
||||
}
|
||||
},
|
||||
|
@ -791,7 +791,7 @@ exports.level = {
|
|||
"afterMarkdowns": [
|
||||
"좋네요, 번지르르 삐까뻔쩍 :D"
|
||||
],
|
||||
"command": "git push origin master:newBranch",
|
||||
"command": "git push origin main:newBranch",
|
||||
"beforeCommand": "git clone; git commit"
|
||||
}
|
||||
},
|
||||
|
@ -848,7 +848,7 @@ exports.level = {
|
|||
"afterMarkdowns": [
|
||||
"Овва! Це доволі незвична команда, але тут все має сенс -- git, знаючи куди вказує `foo^`, завантажив на віддалену сторону ще відсутні там коміти і оновив місце призначення."
|
||||
],
|
||||
"command": "git push origin foo^:master",
|
||||
"command": "git push origin foo^:main",
|
||||
"beforeCommand": "git clone; go -b foo; git commit; git commit"
|
||||
}
|
||||
},
|
||||
|
@ -861,7 +861,7 @@ exports.level = {
|
|||
"afterMarkdowns": [
|
||||
"Спритно, еге-ж? :D"
|
||||
],
|
||||
"command": "git push origin master:newBranch",
|
||||
"command": "git push origin main:newBranch",
|
||||
"beforeCommand": "git clone; git commit"
|
||||
}
|
||||
},
|
||||
|
@ -918,7 +918,7 @@ exports.level = {
|
|||
"afterMarkdowns": [
|
||||
"Wao! Lệnh này khá phức tạp, nhưng mà hợp lý -- git diễn giải `foo^` thành một vị trí, tải lên tất cả các commit từ đó trở về trước mà chưa có trên nhánh đích rồi cập nhật nó."
|
||||
],
|
||||
"command": "git push origin foo^:master",
|
||||
"command": "git push origin foo^:main",
|
||||
"beforeCommand": "git clone; go -b foo; git commit; git commit"
|
||||
}
|
||||
},
|
||||
|
@ -931,7 +931,7 @@ exports.level = {
|
|||
"afterMarkdowns": [
|
||||
"Tuyệt vời, thấy git thú vị không :D"
|
||||
],
|
||||
"command": "git push origin master:newBranch",
|
||||
"command": "git push origin main:newBranch",
|
||||
"beforeCommand": "git clone; git commit"
|
||||
}
|
||||
},
|
||||
|
@ -988,7 +988,7 @@ exports.level = {
|
|||
"afterMarkdowns": [
|
||||
"Woah! To je kar zanimiv ukaz, ampak ima smisel -- git je razrešil `foo^` v lokacijo, naložil commite, ki še niso bili prisotni v oddaljenem repotu in nato posodobil destinacijo."
|
||||
],
|
||||
"command": "git push origin foo^:master",
|
||||
"command": "git push origin foo^:main",
|
||||
"beforeCommand": "git clone; go -b foo; git commit; git commit"
|
||||
}
|
||||
},
|
||||
|
@ -1001,7 +1001,7 @@ exports.level = {
|
|||
"afterMarkdowns": [
|
||||
"Lepa, to je kar kul :D"
|
||||
],
|
||||
"command": "git push origin master:newBranch",
|
||||
"command": "git push origin main:newBranch",
|
||||
"beforeCommand": "git clone; git commit"
|
||||
}
|
||||
},
|
||||
|
|
|
@ -22,7 +22,7 @@ exports.level = {
|
|||
"name": {
|
||||
"en_US": "Push Master!",
|
||||
"zh_CN": "推送主分支",
|
||||
"zh_TW": "push master!",
|
||||
"zh_TW": "push main!",
|
||||
"es_AR": "¡Push Master!",
|
||||
"es_ES": "¡Push Master!",
|
||||
"pt_BR": "Push Master!",
|
||||
|
@ -50,7 +50,7 @@ exports.level = {
|
|||
"",
|
||||
"It's common for developers on big projects to do all their work on feature branches (off of `main`) and then integrate that work only once it's ready. This is similar to the previous lesson (where side branches get pushed to the remote), but here we introduce one more step.",
|
||||
"",
|
||||
"Some developers only push and pull when on the `main` branch -- that way `main` always stays updated to what is on the remote (`o/master`).",
|
||||
"Some developers only push and pull when on the `main` branch -- that way `main` always stays updated to what is on the remote (`o/main`).",
|
||||
"",
|
||||
"So for this workflow we combine two things:",
|
||||
"",
|
||||
|
@ -103,7 +103,7 @@ exports.level = {
|
|||
"",
|
||||
"Il est commun pour les développeurs de gros projets de faire tout leur travail dans des \"feature branches\" dédiées à une fonctionnalité (en dehors de `main`) et d'intégrer ce travail au reste seulement une fois qu'il est prêt. C'est similaire à la leçon précédente (où les branches secondaires étaient pushées sur le dépôt distant), mais ici nous introduisons une étape supplémentaire.",
|
||||
"",
|
||||
"Certains développeurs utilisent la méthode \"push puis pull\" uniquement sur la branche `main` : de cette manière `main` reste toujours à jour avec ce qu'il y a sur le dépôt distant (`o/master`).",
|
||||
"Certains développeurs utilisent la méthode \"push puis pull\" uniquement sur la branche `main` : de cette manière `main` reste toujours à jour avec ce qu'il y a sur le dépôt distant (`o/main`).",
|
||||
"",
|
||||
"Cette approche combine donc deux choses :",
|
||||
"",
|
||||
|
@ -156,7 +156,7 @@ exports.level = {
|
|||
"",
|
||||
"Es bastante común que los desarrolladores en los grandes proyectos trabajen sobre ramas específicas para cada tarea (feature branches) basadas en `main`, y que las integren sólo cuando están listas. Esto es similar a la lección anterior, en que pusheabamos las ramas periféricas al remoto, pero acá tenemos un paso más.",
|
||||
"",
|
||||
"Algunos desarrolladores sólo pushean y pullean cuando están en `main`: de ese modo, `main` siempre se mantiene actualizado con el remoto (`o/master`).",
|
||||
"Algunos desarrolladores sólo pushean y pullean cuando están en `main`: de ese modo, `main` siempre se mantiene actualizado con el remoto (`o/main`).",
|
||||
"",
|
||||
"Entonces, en este flujo de trabajo combinamos dos cosas:",
|
||||
"",
|
||||
|
@ -209,7 +209,7 @@ exports.level = {
|
|||
"",
|
||||
"Es bastante común que los desarrolladores en los grandes proyectos trabajen sobre ramas específicas para cada tarea (feature branches o ramas de trabajo) basadas en `main`, y que las integren sólo cuando estén listas. Esto es similar a la lección anterior, en la que hicimos push de las ramas periféricas al remoto, pero aquí tenemos un paso más.",
|
||||
"",
|
||||
"Algunos desarrolladores sólo pushean y pullean cuando están en `main`: de ese modo, `main` siempre se mantiene actualizado con el remoto (`o/master`).",
|
||||
"Algunos desarrolladores sólo pushean y pullean cuando están en `main`: de ese modo, `main` siempre se mantiene actualizado con el remoto (`o/main`).",
|
||||
"",
|
||||
"Entonces, en este flujo de trabajo combinamos dos cosas:",
|
||||
"",
|
||||
|
@ -262,7 +262,7 @@ exports.level = {
|
|||
"",
|
||||
"É comum para desenvolvedores de grande projetos fazer todo o trabalho em ramos de funcionalidades (fora do `main`) e então integrar esse trabalho uma única vez quando ele estiver pronto. Isso é similar à lição anterior (onde ramos laterais eram enviados ao repositório remoto), mas introduzimos mais um passo.",
|
||||
"",
|
||||
"Alguns desenvolvedores só fazem push e pull quando no ramo `main` -- desta forma o `main` sempre se mantém atualizado com aquilo que está no ramo remoto (`o/master`).",
|
||||
"Alguns desenvolvedores só fazem push e pull quando no ramo `main` -- desta forma o `main` sempre se mantém atualizado com aquilo que está no ramo remoto (`o/main`).",
|
||||
"",
|
||||
"Então, para este fluxo de trabalho, combinaremos duas coisas:",
|
||||
"",
|
||||
|
@ -315,7 +315,7 @@ exports.level = {
|
|||
"",
|
||||
"É bastante común que os desenvolvedores nos grandes proxectos traballen sobre ramas específicas para cada tarefa (feature branches) baseadas en `mater`, e que as integren só cando están preparadas. Esto é similar á lección anterior, na que empurrábamos as ramas periféricas ó remoto, pero acá temos un paso máis.",
|
||||
"",
|
||||
"Algúns desenvovledores só empurran e descargan cando están en `main`: de ese xeito, `main` sempre mantén actualizado o seu estado co remoto (`o/master`).",
|
||||
"Algúns desenvovledores só empurran e descargan cando están en `main`: de ese xeito, `main` sempre mantén actualizado o seu estado co remoto (`o/main`).",
|
||||
"",
|
||||
"Entón, neste fluxo de traballo combinamos dúas cousas:",
|
||||
"",
|
||||
|
@ -366,9 +366,9 @@ exports.level = {
|
|||
"",
|
||||
"現在你已經很熟悉 fetch、pull 以及 push,讓我們來針對一個新的問題來應用這些技巧。",
|
||||
"",
|
||||
"在一個大型的專案裡面,程式設計師經常會在 feature branch(有別於 master branch)上面做開發,之後等開發完之後,在一次 merge 回去。這跟之前的課程是很類似的(其它的 branch 被 push 到 remote),但是現在我們還要再多介紹一個步驟。",
|
||||
"在一個大型的專案裡面,程式設計師經常會在 feature branch(有別於 main branch)上面做開發,之後等開發完之後,在一次 merge 回去。這跟之前的課程是很類似的(其它的 branch 被 push 到 remote),但是現在我們還要再多介紹一個步驟。",
|
||||
"",
|
||||
"某些程式設計師只針對 `main` branch 進行 push 或者是 pull。這樣子的話 `main` 一直都保持跟 remote (`o/master`) 同步。",
|
||||
"某些程式設計師只針對 `main` branch 進行 push 或者是 pull。這樣子的話 `main` 一直都保持跟 remote (`o/main`) 同步。",
|
||||
"",
|
||||
"所以針對這個問題我們結合了兩件事情:",
|
||||
"",
|
||||
|
@ -421,7 +421,7 @@ exports.level = {
|
|||
"",
|
||||
"Für Entwickler in großen Projekten ist es nicht ungewöhnlich ihre Arbeit in Feature Branches (von `main` abgeleitet) zu erledigen und dann diese Inhalte zu reintegrieren, wenn sie fertig sind. Das ist ähnlich dem vorherigen Level (in dem ein Feature Branch auf den Server geschoben wird), nur mit einem zusätzlichen Schritt.",
|
||||
"",
|
||||
"Einige Entwickler pushen und pullen nur auf dem `main` -- dadurch ist `main` immer aktuell zu seinem Gegenstück auf dem Server (`o/master`).",
|
||||
"Einige Entwickler pushen und pullen nur auf dem `main` -- dadurch ist `main` immer aktuell zu seinem Gegenstück auf dem Server (`o/main`).",
|
||||
"",
|
||||
"Für diesen Ablauf werden wir also zwei Dinge kombinieren:",
|
||||
"",
|
||||
|
@ -474,7 +474,7 @@ exports.level = {
|
|||
"",
|
||||
"在大型项目中开发人员通常会在(从 `main` 上分出来的)特性分支上工作,工作完成后只做一次集成。这跟前面课程的描述很相像(把 side 分支推送到远程仓库),不过本节我们会深入一些.",
|
||||
"",
|
||||
"但是有些开发人员只在 master 上做 push、pull —— 这样的话 master 总是最新的,始终与远程分支 (o/master) 保持一致。",
|
||||
"但是有些开发人员只在 main 上做 push、pull —— 这样的话 main 总是最新的,始终与远程分支 (o/main) 保持一致。",
|
||||
"",
|
||||
"对于接下来这个工作流,我们集成了两个步骤:",
|
||||
"",
|
||||
|
@ -527,7 +527,7 @@ exports.level = {
|
|||
"",
|
||||
"Среди разработчиков, вовлечённых в большой проект, довольно распространённ приём — выполнять всю свою работу в так называемых фича-бранчах (вне `main`). А затем, как только работа выполнена, разработчик интегрирует всё, что было им сделано. Всё это, за исключением одного шага, похоже на предыдущий урок (там, где мы закачивали ветки на удалённый репозиторий)",
|
||||
"",
|
||||
"Ряд разработчиков делают push и pull лишь на локальную ветку `main` - таким образом ветка `main` всегда синхронизирована с тем, что находится на удалённом репозитории (`o/master`).",
|
||||
"Ряд разработчиков делают push и pull лишь на локальную ветку `main` - таким образом ветка `main` всегда синхронизирована с тем, что находится на удалённом репозитории (`o/main`).",
|
||||
"",
|
||||
"Для этого рабочего процесса мы совместили две вещи:",
|
||||
"",
|
||||
|
@ -580,7 +580,7 @@ exports.level = {
|
|||
"",
|
||||
"大きなプロジェクトの開発者にとって、フィーチャーブランチ(`main`を除く)上で全ての作業を行い、完成したら一度でその作業を統合するというような流れが一般的です。これは前のレッスンの内容(他のブランチからリモートにプッシュされるような状況のところが)に似ていますが、ここではもう一歩踏み込んで解説しましょう。",
|
||||
"",
|
||||
"開発者は、`main`ブランチにいるときプッシュとプルしかしません -- `main`は常にリモート(`o/master`)に追従した状態のままにします。",
|
||||
"開発者は、`main`ブランチにいるときプッシュとプルしかしません -- `main`は常にリモート(`o/main`)に追従した状態のままにします。",
|
||||
"",
|
||||
"この作業の流れでは、私たちは二つのことを組み合わせています:",
|
||||
"",
|
||||
|
@ -633,7 +633,7 @@ exports.level = {
|
|||
"",
|
||||
"개발자들은 주로 큰 프로젝트를 개발할때 작업을 feature 브랜치(=토픽브랜치 / `main`브랜치가 아닌 작업을위해 임시로 만든 브랜치를 말합니다)들에 하고 준비가 되면 그 작업을 통합합니다. 이전 강의와 비슷한 모습인데(사이드 브랜치들을 원격저장소로 push한것), 여기서 한 단계 더 나아가 봅시다. ",
|
||||
"",
|
||||
"어떤 개발자들은 `main` 브랜치에 있을때만 push와 pull을 수행합니다 -- 이렇게하면 `main`는 항상 원격 브랜치 (`o/master`)의 상태와 항상 최신의 상태로 유지될 수 있습니다.",
|
||||
"어떤 개발자들은 `main` 브랜치에 있을때만 push와 pull을 수행합니다 -- 이렇게하면 `main`는 항상 원격 브랜치 (`o/main`)의 상태와 항상 최신의 상태로 유지될 수 있습니다.",
|
||||
"",
|
||||
"이런 작업흐름은 두가지 작업을 같이하게됩니다 :",
|
||||
"",
|
||||
|
@ -686,7 +686,7 @@ exports.level = {
|
|||
"",
|
||||
"Зазвичай розробники працюють над якимось фічами в окремій гілці (не в `main`), а потім, коли роботу закінчено, інтегрують її. Це схоже на попередній урок (де окремі гілки пушили у віддалений репозиторій), але тут буде ще один додатковий крок.",
|
||||
"",
|
||||
"Деякі розробники виконують push і pull лише в гілці `main` -- тож `main` завжди буде актуальним і синхронізованим з віддаленою гілкою (`o/master`).",
|
||||
"Деякі розробники виконують push і pull лише в гілці `main` -- тож `main` завжди буде актуальним і синхронізованим з віддаленою гілкою (`o/main`).",
|
||||
"",
|
||||
"Отже для цього процесу ми об'єднуємо дві речі:",
|
||||
"",
|
||||
|
@ -739,7 +739,7 @@ exports.level = {
|
|||
"",
|
||||
"Trong các dự án lớn, các nhà phát triển thường làm việc trên các nhánh tính năng (được phân nhánh từ `main`) và chỉ thực hiện tích hợp sau khi công việc hoàn thành. Điều này tương tự như mô tả trong bài học trước (đẩy nhánh bên sang kho lưu trữ từ xa), nhưng chúng ta sẽ đi sâu hơn một chút trong phần này.",
|
||||
"",
|
||||
"Một vài nhà phát triển chỉ thực hiện đẩy và kéo khi ở trên nhánh `main` -- như vậy thì nhánh `main` luôn luôn được cập nhật với nhánh từ xa (`o/master`).",
|
||||
"Một vài nhà phát triển chỉ thực hiện đẩy và kéo khi ở trên nhánh `main` -- như vậy thì nhánh `main` luôn luôn được cập nhật với nhánh từ xa (`o/main`).",
|
||||
"",
|
||||
"Vậy nên với quy trình làm việc này chúng tôi đã kết hợp 2 việc:",
|
||||
"",
|
||||
|
@ -792,7 +792,7 @@ exports.level = {
|
|||
"",
|
||||
"Za razvijalce na velikih projektih je pogosto, da delajo vse svoje stvari na funkcionalnih brancih (ne na `main`) in potem vključijo to delo, ko je končano. To je podobno prejšnjim lekcijam (kjer so bili pushani stranski branchi na oddaljen repo), a tu predstavljamo še en korak.",
|
||||
"",
|
||||
"Nekateri razvijaci samo pushajo in pullajo na `main` branchu -- zato `main` vedno ostane posodobljen z oddaljenim masterjem (`o/master`).",
|
||||
"Nekateri razvijaci samo pushajo in pullajo na `main` branchu -- zato `main` vedno ostane posodobljen z oddaljenim masterjem (`o/main`).",
|
||||
"",
|
||||
"Torej za tak primer uporabe, združimo dve stvari:",
|
||||
"",
|
||||
|
|
|
@ -20,21 +20,21 @@ exports.level = {
|
|||
"sl_SI": "Oddaljeni Branchi"
|
||||
},
|
||||
"hint": {
|
||||
"en_US": "Pay attention to the ordering -- commit on master first!",
|
||||
"zh_CN": "注意顺序 —— 先在 master 分支上提交!",
|
||||
"zh_TW": "注意順序的問題喔!先在 master branch 上面送 commit",
|
||||
"es_AR": "Prestá atención al orden: ¡commiteá sobre master primero!",
|
||||
"es_ES": "Presta atención al orden: ¡haz commit sobre master primero!",
|
||||
"pt_BR": "Preste atenção na ordem: commite no master primeiro!",
|
||||
"gl" : "Preta atención á orde: fai commit no master primeiro",
|
||||
"de_DE": "Beachte die Sortierung -- committe zuerst auf dem master!",
|
||||
"en_US": "Pay attention to the ordering -- commit on main first!",
|
||||
"zh_CN": "注意顺序 —— 先在 main 分支上提交!",
|
||||
"zh_TW": "注意順序的問題喔!先在 main branch 上面送 commit",
|
||||
"es_AR": "Prestá atención al orden: ¡commiteá sobre main primero!",
|
||||
"es_ES": "Presta atención al orden: ¡haz commit sobre main primero!",
|
||||
"pt_BR": "Preste atenção na ordem: commite no main primeiro!",
|
||||
"gl" : "Preta atención á orde: fai commit no main primeiro",
|
||||
"de_DE": "Beachte die Sortierung -- committe zuerst auf dem main!",
|
||||
"ja" : "順番に注意 -- まずmasterに対してcommitしましょう",
|
||||
"fr_FR": "Prêtez attention à l'ordre -- les commits sur master d'abord !",
|
||||
"ru_RU": "Уделяйте внимание очерёдности -- сперва commit на master",
|
||||
"fr_FR": "Prêtez attention à l'ordre -- les commits sur main d'abord !",
|
||||
"ru_RU": "Уделяйте внимание очерёдности -- сперва commit на main",
|
||||
"ko" : "순서에 주의하세요 -- master에서 먼저 커밋하세요!",
|
||||
"uk" : "Звертайте увагу на послідовність -- спочатку коміт в мастер!",
|
||||
"vi" : "Chú ý đến thứ tự -- commit trên nhánh master trước!",
|
||||
"sl_SI": "Bodi pozoren na vrsti red -- commitaj najprej na master!"
|
||||
"vi" : "Chú ý đến thứ tự -- commit trên nhánh main trước!",
|
||||
"sl_SI": "Bodi pozoren na vrsti red -- commitaj najprej na main!"
|
||||
},
|
||||
"startDialog": {
|
||||
"en_US": {
|
||||
|
@ -47,7 +47,7 @@ exports.level = {
|
|||
"",
|
||||
"Now that you've seen `git clone` in action, let's dive into what actually changed.",
|
||||
"",
|
||||
"The first thing you may have noticed is that a new branch appeared in our local repository called `o/master`. This type of branch is called a _remote_ branch; remote branches have special properties because they serve a unique purpose.",
|
||||
"The first thing you may have noticed is that a new branch appeared in our local repository called `o/main`. This type of branch is called a _remote_ branch; remote branches have special properties because they serve a unique purpose.",
|
||||
"",
|
||||
"Remote branches reflect the _state_ of remote repositories (since you last talked to those remote repositories). They help you understand the difference between your local work and what work is public -- a critical step to take before sharing your work with others.",
|
||||
"",
|
||||
|
@ -65,7 +65,7 @@ exports.level = {
|
|||
"",
|
||||
"* `<remote name>/<branch name>`",
|
||||
"",
|
||||
"Hence, if you look at a branch named `o/master`, the branch name is `main` and the name of the remote is `o`.",
|
||||
"Hence, if you look at a branch named `o/main`, the branch name is `main` and the name of the remote is `o`.",
|
||||
"",
|
||||
"Most developers actually name their main remote `origin`, not `o`. This is so common that git actually sets up your remote to be named `origin` when you `git clone` a repository.",
|
||||
"",
|
||||
|
@ -82,9 +82,9 @@ exports.level = {
|
|||
"Lets check out a remote branch and see what happens."
|
||||
],
|
||||
"afterMarkdowns": [
|
||||
"As you can see, git put us into detached `HEAD` mode and then did not update `o/master` when we added a new commit. This is because `o/master` will only update when the remote updates."
|
||||
"As you can see, git put us into detached `HEAD` mode and then did not update `o/main` when we added a new commit. This is because `o/main` will only update when the remote updates."
|
||||
],
|
||||
"command": "git checkout o/master; git commit",
|
||||
"command": "git checkout o/main; git commit",
|
||||
"beforeCommand": "git clone"
|
||||
}
|
||||
},
|
||||
|
@ -92,7 +92,7 @@ exports.level = {
|
|||
"type": "ModalAlert",
|
||||
"options": {
|
||||
"markdowns": [
|
||||
"To finish this level, commit once off of `main` and once after checking out `o/master`. This will help drive home how remote branches behave differently, and they only update to reflect the state of the remote."
|
||||
"To finish this level, commit once off of `main` and once after checking out `o/main`. This will help drive home how remote branches behave differently, and they only update to reflect the state of the remote."
|
||||
]
|
||||
}
|
||||
}
|
||||
|
@ -108,7 +108,7 @@ exports.level = {
|
|||
"",
|
||||
"Maintenant que nous avons vu `git clone` en action, plongeons dans ce qui a changé.",
|
||||
"",
|
||||
"La première chose que vous avez peut-être remarqué est qu'une nouvelle branche est apparue dans votre dépôt local appelée `o/master`. Ce type de branche est appelée une branche _distante_ ; les branches distantes ont des propriétés spécifiques car elles servent à un but précis.",
|
||||
"La première chose que vous avez peut-être remarqué est qu'une nouvelle branche est apparue dans votre dépôt local appelée `o/main`. Ce type de branche est appelée une branche _distante_ ; les branches distantes ont des propriétés spécifiques car elles servent à un but précis.",
|
||||
"",
|
||||
"Les branches distantes reflètent _l'état_ des dépôts distants (depuis la dernière fois où vous avez parlé avec ceux-ci). Elles vous aident à comprendre les différences entre votre travail et le travail public -- une étape critique à effectuer avant de partager son travail avec les autres.",
|
||||
"",
|
||||
|
@ -126,7 +126,7 @@ exports.level = {
|
|||
"",
|
||||
"* `<nom dépôt distant>/<nom de la branche>`",
|
||||
"",
|
||||
"Donc, si vous regardez une branche nommée `o/master`, le nom de la branche est `main` et le nom du dépôt distant est `o`.",
|
||||
"Donc, si vous regardez une branche nommée `o/main`, le nom de la branche est `main` et le nom du dépôt distant est `o`.",
|
||||
"",
|
||||
"La plupart des développeurs nomment leur principal dépôt distant `origin`, pas `o`. C'est si commun que git configure en fait votre dépôt local pour être nommé `origin` quand vous faîtes un `git clone` du dépôt.",
|
||||
"",
|
||||
|
@ -143,9 +143,9 @@ exports.level = {
|
|||
"Rendons-nous sur une branche et regardons ce qui se passe."
|
||||
],
|
||||
"afterMarkdowns": [
|
||||
"Comme vous pouvez le voir, git nous a mis dans le mode \"detached\" (cf. `HEAD`) puis n'a pas mis à jour `o/master` quand nous avons ajouté un nouveau commit. C'est parce que `o/master` va se mettre à jour uniquement quand le dépôt distant sera mis à jour."
|
||||
"Comme vous pouvez le voir, git nous a mis dans le mode \"detached\" (cf. `HEAD`) puis n'a pas mis à jour `o/main` quand nous avons ajouté un nouveau commit. C'est parce que `o/main` va se mettre à jour uniquement quand le dépôt distant sera mis à jour."
|
||||
],
|
||||
"command": "git checkout o/master; git commit",
|
||||
"command": "git checkout o/main; git commit",
|
||||
"beforeCommand": "git clone"
|
||||
}
|
||||
},
|
||||
|
@ -153,7 +153,7 @@ exports.level = {
|
|||
"type": "ModalAlert",
|
||||
"options": {
|
||||
"markdowns": [
|
||||
"Pour finir ce niveau, faîtes un commit en dehors de `main` puis un après vous être rendu dans `o/master`. Cela va nous aider à comprendre la différence de comportement des branches distantes, et le fait qu'elles se mettent à jour uniquement pour refléter l'état du dépôt distant."
|
||||
"Pour finir ce niveau, faîtes un commit en dehors de `main` puis un après vous être rendu dans `o/main`. Cela va nous aider à comprendre la différence de comportement des branches distantes, et le fait qu'elles se mettent à jour uniquement pour refléter l'état du dépôt distant."
|
||||
]
|
||||
}
|
||||
}
|
||||
|
@ -169,7 +169,7 @@ exports.level = {
|
|||
"",
|
||||
"Ahora que viste `git clone` en acción, ahondemos en lo que realmente cambió.",
|
||||
"",
|
||||
"Lo primero que habrás notado es que apareció una nueva rama en tu repositorio local llamada `o/master`. A este tipo de ramas se las llama ramas _remotas_. Las ramas remotas tienen propiedades especiales porque sirven un propósito específico.",
|
||||
"Lo primero que habrás notado es que apareció una nueva rama en tu repositorio local llamada `o/main`. A este tipo de ramas se las llama ramas _remotas_. Las ramas remotas tienen propiedades especiales porque sirven un propósito específico.",
|
||||
"",
|
||||
"Las ramas remotas reflejan el _estado_ de los repositorios remotos (cómo estaban la última vez que hablaste con ellos). Te ayudan a entender las diferencias entre tu trabajo local y el trabajo que ya está publicado - un paso crítico antes de compartir tu trabajo con los demás.",
|
||||
"",
|
||||
|
@ -187,7 +187,7 @@ exports.level = {
|
|||
"",
|
||||
"* `<nombre del remoto>/<nombre de la rama>`",
|
||||
"",
|
||||
"Entonces, si mirás una rama llamada `o/master`, el nombre de la rama es `main`, y el nombre del remoto es `o`.",
|
||||
"Entonces, si mirás una rama llamada `o/main`, el nombre de la rama es `main`, y el nombre del remoto es `o`.",
|
||||
"",
|
||||
"La mayoría de los desarrolladores llaman `origin` a su remoto en lugar de `o`. Esto es tan común que git efectivamente crea tu remoto llamándolo `origin` cuando hacés `git clone` de un repositorio.",
|
||||
"",
|
||||
|
@ -204,9 +204,9 @@ exports.level = {
|
|||
"Checkouteemos una rama remota a ver qué pasa."
|
||||
],
|
||||
"afterMarkdowns": [
|
||||
"Como ves, git nos puso en el modo detached `HEAD` y no actualizó `o/master` cuando creamos un nuevo commit. Esto es porque `o/master` sólo va a actualizarse cuando el remoto se actualice."
|
||||
"Como ves, git nos puso en el modo detached `HEAD` y no actualizó `o/main` cuando creamos un nuevo commit. Esto es porque `o/main` sólo va a actualizarse cuando el remoto se actualice."
|
||||
],
|
||||
"command": "git checkout o/master; git commit",
|
||||
"command": "git checkout o/main; git commit",
|
||||
"beforeCommand": "git clone"
|
||||
}
|
||||
},
|
||||
|
@ -214,7 +214,7 @@ exports.level = {
|
|||
"type": "ModalAlert",
|
||||
"options": {
|
||||
"markdowns": [
|
||||
"Para completar este nivel, commiteá una vez sobre `main` y una después de checkoutear `o/master`. Esto te va a ayudar a caer en cómo las ramas remotas funcionan distinto, y que sólo se actualizan para reflejar el estado del remoto."
|
||||
"Para completar este nivel, commiteá una vez sobre `main` y una después de checkoutear `o/main`. Esto te va a ayudar a caer en cómo las ramas remotas funcionan distinto, y que sólo se actualizan para reflejar el estado del remoto."
|
||||
]
|
||||
}
|
||||
}
|
||||
|
@ -230,7 +230,7 @@ exports.level = {
|
|||
"",
|
||||
"Ahora que viste `git clone` en acción, ahondemos en lo que realmente cambió.",
|
||||
"",
|
||||
"Lo primero que habrás notado es que apareció una nueva rama en tu repositorio local llamada `o/master`. A este tipo de ramas se las llama ramas _remotas_. Las ramas remotas tienen propiedades especiales porque sirven un propósito específico.",
|
||||
"Lo primero que habrás notado es que apareció una nueva rama en tu repositorio local llamada `o/main`. A este tipo de ramas se las llama ramas _remotas_. Las ramas remotas tienen propiedades especiales porque sirven un propósito específico.",
|
||||
"",
|
||||
"Las ramas remotas reflejan el _estado_ de los repositorios remotos (cómo estaban la última vez que hablaste con ellos). Te ayudan a entender las diferencias entre tu trabajo local y el trabajo que ya está publicado - un paso crítico antes de compartir tu trabajo con los demás.",
|
||||
"",
|
||||
|
@ -248,7 +248,7 @@ exports.level = {
|
|||
"",
|
||||
"* `<nombre del remoto>/<nombre de la rama>`",
|
||||
"",
|
||||
"Entonces, si observas una rama llamada `o/master`, el nombre de la rama es `main`, y el nombre del remoto es `o`.",
|
||||
"Entonces, si observas una rama llamada `o/main`, el nombre de la rama es `main`, y el nombre del remoto es `o`.",
|
||||
"",
|
||||
"La mayoría de los desarrolladores llaman `origin` a su remoto en lugar de `o`. Esto es tan común que git efectivamente crea tu remoto llamándolo `origin` cuando haces `git clone` de un repositorio.",
|
||||
"",
|
||||
|
@ -265,9 +265,9 @@ exports.level = {
|
|||
"Hagamos checkout sobre una rama remota a ver qué pasa."
|
||||
],
|
||||
"afterMarkdowns": [
|
||||
"Como ves, git nos puso en el modo detached `HEAD` y no actualizó `o/master` cuando creamos un nuevo commit. Esto ocurre porque `o/master` sólo va a actualizarse cuando el remoto se actualice."
|
||||
"Como ves, git nos puso en el modo detached `HEAD` y no actualizó `o/main` cuando creamos un nuevo commit. Esto ocurre porque `o/main` sólo va a actualizarse cuando el remoto se actualice."
|
||||
],
|
||||
"command": "git checkout o/master; git commit",
|
||||
"command": "git checkout o/main; git commit",
|
||||
"beforeCommand": "git clone"
|
||||
}
|
||||
},
|
||||
|
@ -275,7 +275,7 @@ exports.level = {
|
|||
"type": "ModalAlert",
|
||||
"options": {
|
||||
"markdowns": [
|
||||
"Para completar este nivel, haz commit una vez sobre `main` y otra vez después de checkoutear `o/master`. Esto te va a ayudar a aprender cómo las ramas remotas funcionan distinto, y que sólo se actualizan para reflejar el estado del remoto."
|
||||
"Para completar este nivel, haz commit una vez sobre `main` y otra vez después de checkoutear `o/main`. Esto te va a ayudar a aprender cómo las ramas remotas funcionan distinto, y que sólo se actualizan para reflejar el estado del remoto."
|
||||
]
|
||||
}
|
||||
}
|
||||
|
@ -291,7 +291,7 @@ exports.level = {
|
|||
"",
|
||||
"Agora que vimos o `git clone` em ação, vamos estudar aquilo que realmente mudou.",
|
||||
"",
|
||||
"A primeira coisa que você pode ter percebido é que um novo ramo chamado `o/master` aparece no nosso repositório local. Esse tipo de ramo é chamado de ramo _remoto_; ramos remotos possuem propriedades especiais pois eles servem a um propósito único.",
|
||||
"A primeira coisa que você pode ter percebido é que um novo ramo chamado `o/main` aparece no nosso repositório local. Esse tipo de ramo é chamado de ramo _remoto_; ramos remotos possuem propriedades especiais pois eles servem a um propósito único.",
|
||||
"",
|
||||
"Ramos remotos refletem o _estado_ de repositórios remotos (desde a última vez na qual você falou com eles). Eles ajudam a entender as diferenças entre o trabalho local e o trabalho atualmente público -- um passo crítico a ser dado antes de compartilhar seu trabalho com os outros.",
|
||||
"",
|
||||
|
@ -309,7 +309,7 @@ exports.level = {
|
|||
"",
|
||||
"* `<nome do repositório remoto>/<nome do ramo>`",
|
||||
"",
|
||||
"Então, se o ramo remoto é chamado `o/master`, o nome do ramo é `main` e o nome do repositório remoto é `o`.",
|
||||
"Então, se o ramo remoto é chamado `o/main`, o nome do ramo é `main` e o nome do repositório remoto é `o`.",
|
||||
"",
|
||||
"A maioria dos desenvolvedores na verdade chama o repositório remoto principal de `origin`, e não de `o`. Isso é tão comum que o Git define por padrão o nome `origin` para o repositório remoto quando você usa o comando `git clone` para clonar um repositório.",
|
||||
"",
|
||||
|
@ -326,9 +326,9 @@ exports.level = {
|
|||
"Vamos fazer checkout de um ramo remoto e ver o que acontece."
|
||||
],
|
||||
"afterMarkdowns": [
|
||||
"Como você pode ver, o Git nos colocou no modo \"Detached HEAD\", e não atualizou o `o/master` quando adicionamos um novo commit. Isso é porque o `o/master` só será atualizado quando o repositório remoto for atualizado."
|
||||
"Como você pode ver, o Git nos colocou no modo \"Detached HEAD\", e não atualizou o `o/main` quando adicionamos um novo commit. Isso é porque o `o/main` só será atualizado quando o repositório remoto for atualizado."
|
||||
],
|
||||
"command": "git checkout o/master; git commit",
|
||||
"command": "git checkout o/main; git commit",
|
||||
"beforeCommand": "git clone"
|
||||
}
|
||||
},
|
||||
|
@ -336,7 +336,7 @@ exports.level = {
|
|||
"type": "ModalAlert",
|
||||
"options": {
|
||||
"markdowns": [
|
||||
"Para completar este nível, commite uma vez em `main`, e outra vez depois de fazer checkout em `o/master`. Isso vai ajudá-lo a sentir como os ramos remotos se comportam de forma diferente, e como eles apenas se atualizam para refletir o estado do repositório remoto."
|
||||
"Para completar este nível, commite uma vez em `main`, e outra vez depois de fazer checkout em `o/main`. Isso vai ajudá-lo a sentir como os ramos remotos se comportam de forma diferente, e como eles apenas se atualizam para refletir o estado do repositório remoto."
|
||||
]
|
||||
}
|
||||
}
|
||||
|
@ -352,7 +352,7 @@ exports.level = {
|
|||
"",
|
||||
"Agora que viches `git clone` en acción, mergullémonos no que realmente mudou.",
|
||||
"",
|
||||
"O primeiro que notarías é que apareceu unha nova rama no teu repositorio local chamada `o/master`. A este tipo de ramas chámaselle ramas _remotas_. As ramas remotas teñén propiedades especiais porque serven para un propósito específico.",
|
||||
"O primeiro que notarías é que apareceu unha nova rama no teu repositorio local chamada `o/main`. A este tipo de ramas chámaselle ramas _remotas_. As ramas remotas teñén propiedades especiais porque serven para un propósito específico.",
|
||||
"",
|
||||
"As ramas remotas reflexan o _estado_ dos repositorios remotos (como estaban á última vez que falaches con eles). Axúdante a entender as diferencias entre o teu traballo local e o teu traballo que xa está publicado - un paso crítico antes de compartir o teu traballo cos demáis.",
|
||||
"",
|
||||
|
@ -370,7 +370,7 @@ exports.level = {
|
|||
"",
|
||||
"* `<nome do remoto>/<nome da rama>`",
|
||||
"",
|
||||
"Entonces, se miras unha rama chamada `o/master`, o nome da rama é `main`, e o nome do remoto é `o`.",
|
||||
"Entonces, se miras unha rama chamada `o/main`, o nome da rama é `main`, e o nome do remoto é `o`.",
|
||||
"",
|
||||
"A maioría dos desenvolvedores chaman `origin` ó seu remoto no lugar de `o`. Esto é tan común que git efectivamente crea o teu remoto chamandoo `origin` cando fas `git clone` dun repositorio.",
|
||||
"",
|
||||
|
@ -389,7 +389,7 @@ exports.level = {
|
|||
"afterMarkdowns": [
|
||||
"Como ves, git púxonos no modo detached `HEAD` e non actualizou `o/mater` cando creamos un novo commit. Esto é porque `o/mater` só vai actualizarse cando o remoto se actualice."
|
||||
],
|
||||
"command": "git checkout o/master; git commit",
|
||||
"command": "git checkout o/main; git commit",
|
||||
"beforeCommand": "git clone"
|
||||
}
|
||||
},
|
||||
|
@ -397,7 +397,7 @@ exports.level = {
|
|||
"type": "ModalAlert",
|
||||
"options": {
|
||||
"markdowns": [
|
||||
"Para completar este nivel, fai commit unha vez sobre `mater` e despois de facer o checkout a `o/master`. Esto vaite axudar a entender cómo funcionan as ramas remotas, e que só se actualizan para reflexar o estado do remoto."
|
||||
"Para completar este nivel, fai commit unha vez sobre `mater` e despois de facer o checkout a `o/main`. Esto vaite axudar a entender cómo funcionan as ramas remotas, e que só se actualizan para reflexar o estado do remoto."
|
||||
]
|
||||
}
|
||||
}
|
||||
|
@ -413,7 +413,7 @@ exports.level = {
|
|||
"",
|
||||
"現在你已經知道 `git clone` 在幹嘛了,讓我們仔細看看到底發生了什麼事。",
|
||||
"",
|
||||
"你首先看到的是在你的本地端(local repository)出現了一個新的 branch 叫作 `o/master`,這種型態的 branch 叫作 remote branch (遠端分支),因為特殊的需求,因此 remote branch 有特殊的性質。",
|
||||
"你首先看到的是在你的本地端(local repository)出現了一個新的 branch 叫作 `o/main`,這種型態的 branch 叫作 remote branch (遠端分支),因為特殊的需求,因此 remote branch 有特殊的性質。",
|
||||
"",
|
||||
"remote branch 反應了 remote repository 的狀態(因為你最後接觸的是這些 remote repository),最重要的是,在你想要分享你的 commit 給其他人時,你必須知道你現在的 commit 跟 remote repository 有哪些不同,而 remote branch 的狀態就是在告訴你這些資訊。",
|
||||
"",
|
||||
|
@ -431,7 +431,7 @@ exports.level = {
|
|||
"",
|
||||
"* `<remote 名稱>/<branch 名稱>`",
|
||||
"",
|
||||
"因此,當你看到一個 branch 叫做 `o/master`,就表示這個 branch 叫做 master,而且這個 remote 的名稱叫作 `o`。",
|
||||
"因此,當你看到一個 branch 叫做 `o/main`,就表示這個 branch 叫做 main,而且這個 remote 的名稱叫作 `o`。",
|
||||
"",
|
||||
"很多程式設計師實際上會把他們的 remote 命名為 `origin`,而不是 `o`,這在 git 是很常見的事情,因為當你使用 `git clone` 時,git 會自動把你的 remote 命名為 `origin`。",
|
||||
"",
|
||||
|
@ -448,9 +448,9 @@ exports.level = {
|
|||
"讓我們移動到(checkout)一個 remote branch 並且看一下會發生什麼事情"
|
||||
],
|
||||
"afterMarkdowns": [
|
||||
"就像你看到的, git 讓我們進到 detached `HEAD` 狀態,同時,當我們加入一個新的 commit 時,`o/master` 都沒有更新,這是因為只有當 remote 更新的時候,`o/master` 才會更新。"
|
||||
"就像你看到的, git 讓我們進到 detached `HEAD` 狀態,同時,當我們加入一個新的 commit 時,`o/main` 都沒有更新,這是因為只有當 remote 更新的時候,`o/main` 才會更新。"
|
||||
],
|
||||
"command": "git checkout o/master; git commit",
|
||||
"command": "git checkout o/main; git commit",
|
||||
"beforeCommand": "git clone"
|
||||
}
|
||||
},
|
||||
|
@ -458,7 +458,7 @@ exports.level = {
|
|||
"type": "ModalAlert",
|
||||
"options": {
|
||||
"markdowns": [
|
||||
"要完成這一關,先在 master branch 上面做一次 commit,再移動到 `o/master` 上做一次 commit,這有助於我們了解到 remote branch 的不同,它們只會反應 remote 的狀態。"
|
||||
"要完成這一關,先在 main branch 上面做一次 commit,再移動到 `o/main` 上做一次 commit,這有助於我們了解到 remote branch 的不同,它們只會反應 remote 的狀態。"
|
||||
]
|
||||
}
|
||||
}
|
||||
|
@ -474,7 +474,7 @@ exports.level = {
|
|||
"",
|
||||
"Nun da du `git clone` in Aktion gesehen hast, lass uns tiefer in die Materie eintauchen.",
|
||||
"",
|
||||
"Dir ist wahrscheinlich als Erstes aufgefallen, dass ein neuer Branch namens `o/master` in unserem lokalen Repository aufgetaucht ist. Diese Art von Branch nennt sich _Remote_ Branch; er hat besondere Eigenschaften, weil er einem bestimmten Zweck dient.",
|
||||
"Dir ist wahrscheinlich als Erstes aufgefallen, dass ein neuer Branch namens `o/main` in unserem lokalen Repository aufgetaucht ist. Diese Art von Branch nennt sich _Remote_ Branch; er hat besondere Eigenschaften, weil er einem bestimmten Zweck dient.",
|
||||
"",
|
||||
"Ein Remote Branch bildet den Zustand des entsprechenden Branch in einem entfernten Repository ab (dem Zustand in dem der Branch war, als du das letzte Mal das entfernte Repository angesprochen hast). Er hilft dir, den Unterschied zwischen deinem lokalen Branch und dem Gegenstück auf dem Server zu sehen -- eine nötige Information, bevor du deine Arbeit mit anderen teilen kannst.",
|
||||
"",
|
||||
|
@ -492,7 +492,7 @@ exports.level = {
|
|||
"",
|
||||
"* `<Name des Remote>/<Name des Branches>`",
|
||||
"",
|
||||
"Wenn du also einen Remote Branch namens `o/master` hast, ist es eine Abbildung des Branches `main` auf dem Server, der in deinem Repository als `o` bekannt ist.",
|
||||
"Wenn du also einen Remote Branch namens `o/main` hast, ist es eine Abbildung des Branches `main` auf dem Server, der in deinem Repository als `o` bekannt ist.",
|
||||
"",
|
||||
"Die meisten Entwickler nennen das Haupt-Remote eigentlich `origin` und nicht `o`. Das ist so verbreitet, dass Git den entfernten Server, von dem man ein `git clone` macht, standardmäßig als `origin` im Clone speichert.",
|
||||
"",
|
||||
|
@ -509,9 +509,9 @@ exports.level = {
|
|||
"Checken wir mal einen Remote Branch aus und schauen was passiert."
|
||||
],
|
||||
"afterMarkdowns": [
|
||||
"Wie du siehst setzt uns Git in den \"Detached `HEAD`\" Modus und aktualisiert dann nach dem Commit nicht den Branch `o/master`. Das liegt daran, dass der Remote Branch nur aktualisiert wird, wenn sich der entsprechende Branch auf dem Remote verändert."
|
||||
"Wie du siehst setzt uns Git in den \"Detached `HEAD`\" Modus und aktualisiert dann nach dem Commit nicht den Branch `o/main`. Das liegt daran, dass der Remote Branch nur aktualisiert wird, wenn sich der entsprechende Branch auf dem Remote verändert."
|
||||
],
|
||||
"command": "git checkout o/master; git commit",
|
||||
"command": "git checkout o/main; git commit",
|
||||
"beforeCommand": "git clone"
|
||||
}
|
||||
},
|
||||
|
@ -519,7 +519,7 @@ exports.level = {
|
|||
"type": "ModalAlert",
|
||||
"options": {
|
||||
"markdowns": [
|
||||
"Um diesen Level zu bewältigen musst du einen Commit in `main` machen und einen nachdem du `o/master` ausgecheckt hast. Das illustriert noch einmal wie sich Branches und Remote Branches unterschiedlich verhalten und dass letztere sich nur verändern, wenn sich ihr Zustand auf dem entfernten Server ändert."
|
||||
"Um diesen Level zu bewältigen musst du einen Commit in `main` machen und einen nachdem du `o/main` ausgecheckt hast. Das illustriert noch einmal wie sich Branches und Remote Branches unterschiedlich verhalten und dass letztere sich nur verändern, wenn sich ihr Zustand auf dem entfernten Server ändert."
|
||||
]
|
||||
}
|
||||
}
|
||||
|
@ -535,7 +535,7 @@ exports.level = {
|
|||
"",
|
||||
"既然你已经看过 `git clone` 命令了,咱们深入地看一下发生了什么。",
|
||||
"",
|
||||
"你可能注意到的第一个事就是在我们的本地仓库多了一个名为 `o/master` 的分支, 这种类型的分支就叫**远程**分支。由于远程分支的特性导致其拥有一些特殊属性。",
|
||||
"你可能注意到的第一个事就是在我们的本地仓库多了一个名为 `o/main` 的分支, 这种类型的分支就叫**远程**分支。由于远程分支的特性导致其拥有一些特殊属性。",
|
||||
"",
|
||||
"远程分支反映了远程仓库(在你上次和它通信时)的**状态**。这会有助于你理解本地的工作与公共工作的差别 —— 这是你与别人分享工作成果前至关重要的一步.",
|
||||
"",
|
||||
|
@ -553,7 +553,7 @@ exports.level = {
|
|||
"",
|
||||
"* `<remote name>/<branch name>`",
|
||||
"",
|
||||
"因此,如果你看到一个名为 `o/master` 的分支,那么这个分支就叫 `main`,远程仓库的名称就是 `o`。",
|
||||
"因此,如果你看到一个名为 `o/main` 的分支,那么这个分支就叫 `main`,远程仓库的名称就是 `o`。",
|
||||
"",
|
||||
"大多数的开发人员会将它们主要的远程仓库命名为 `origin`,并不是 `o`。这是因为当你用 `git clone` 某个仓库时,Git 已经帮你把远程仓库的名称设置为 `origin` 了",
|
||||
"",
|
||||
|
@ -570,9 +570,9 @@ exports.level = {
|
|||
"如果检出远程分支会怎么样呢?"
|
||||
],
|
||||
"afterMarkdowns": [
|
||||
"正如你所见,Git 变成了分离 HEAD 状态,当添加新的提交时 `o/master` 也不会更新。这是因为 `o/master` 只有在远程仓库中相应的分支更新了以后才会更新。"
|
||||
"正如你所见,Git 变成了分离 HEAD 状态,当添加新的提交时 `o/main` 也不会更新。这是因为 `o/main` 只有在远程仓库中相应的分支更新了以后才会更新。"
|
||||
],
|
||||
"command": "git checkout o/master; git commit",
|
||||
"command": "git checkout o/main; git commit",
|
||||
"beforeCommand": "git clone"
|
||||
}
|
||||
},
|
||||
|
@ -580,7 +580,7 @@ exports.level = {
|
|||
"type": "ModalAlert",
|
||||
"options": {
|
||||
"markdowns": [
|
||||
"要通过本关,在 `main` 分支上做一次提交;然后检出 `o/master`,再做一提交。这有助于你理解远程分支的不同,他们的更新只是反映了远程的状态。"
|
||||
"要通过本关,在 `main` 分支上做一次提交;然后检出 `o/main`,再做一提交。这有助于你理解远程分支的不同,他们的更新只是反映了远程的状态。"
|
||||
]
|
||||
}
|
||||
}
|
||||
|
@ -614,7 +614,7 @@ exports.level = {
|
|||
"",
|
||||
"* `<リモート名>/<ブランチ名>`",
|
||||
"",
|
||||
"これに基づいて、`o/master`と名付けられたブランチを見てみると、`main`はブランチの名前、`o`はリモートの名前であることが分かります。",
|
||||
"これに基づいて、`o/main`と名付けられたブランチを見てみると、`main`はブランチの名前、`o`はリモートの名前であることが分かります。",
|
||||
"",
|
||||
"多くの開発者は、実際にはメインのリモート名として`o`ではなく`origin`を使います。これは一般的には、Gitが`git clone`した時に`origin`という名前をリモートに付与するためです。",
|
||||
"",
|
||||
|
@ -631,9 +631,9 @@ exports.level = {
|
|||
"リモートブランチをチェックアウトすると何が起こるかを見てみましょう"
|
||||
],
|
||||
"afterMarkdowns": [
|
||||
"見ていた通り、`o/master`に移ってから新しいコミットをしても`HEAD`が分離状態になり`o/master`は更新されていません。これは、`o/master`がリモートの更新時のみ更新されるからです。"
|
||||
"見ていた通り、`o/main`に移ってから新しいコミットをしても`HEAD`が分離状態になり`o/main`は更新されていません。これは、`o/main`がリモートの更新時のみ更新されるからです。"
|
||||
],
|
||||
"command": "git checkout o/master; git commit",
|
||||
"command": "git checkout o/main; git commit",
|
||||
"beforeCommand": "git clone"
|
||||
}
|
||||
},
|
||||
|
@ -641,7 +641,7 @@ exports.level = {
|
|||
"type": "ModalAlert",
|
||||
"options": {
|
||||
"markdowns": [
|
||||
"このレベルを終えるには、まずコミットを`main`に一回行い、その後`o/master`にチェックアウトしてからもう一度コミットをします。これは、リモートブランチがどれほど違った動きをするか、そしてリモートブランチがリモートの状態を反映する時しか更新されないことを理解するのに役立つでしょう。"
|
||||
"このレベルを終えるには、まずコミットを`main`に一回行い、その後`o/main`にチェックアウトしてからもう一度コミットをします。これは、リモートブランチがどれほど違った動きをするか、そしてリモートブランチがリモートの状態を反映する時しか更新されないことを理解するのに役立つでしょう。"
|
||||
]
|
||||
}
|
||||
}
|
||||
|
@ -657,7 +657,7 @@ exports.level = {
|
|||
"",
|
||||
"Теперь, когда вы уже увидели `git clone` в действии, давайте углубимся в детали и посмотрим что же на самом деле изменилось.",
|
||||
"",
|
||||
"Во-первых, вы должны были заметить, что у нас в локальном репозитории появилась новая ветка с именем `o/master`. Такой тип ветки называется _удалённой_ веткой. Поскольку удалённые ветки играют важную и уникальную роль, они обладают рядом специальных свойств.",
|
||||
"Во-первых, вы должны были заметить, что у нас в локальном репозитории появилась новая ветка с именем `o/main`. Такой тип ветки называется _удалённой_ веткой. Поскольку удалённые ветки играют важную и уникальную роль, они обладают рядом специальных свойств.",
|
||||
"",
|
||||
"Удалённые ветки отражают _состояние_ удалённых репозиториев (с того момента, как вы обращались к этим удалённым репозиториям в последний раз). Они позволяют вам отслеживать и видеть разницу между вашими локальными наработками и тем, что было сделано другими участниками - важный шаг, который необходимо делать, прежде чем делиться своими наработками с другими.",
|
||||
"",
|
||||
|
@ -675,7 +675,7 @@ exports.level = {
|
|||
"",
|
||||
"* `<удалённый репозиторий>/<имя ветки>`",
|
||||
"",
|
||||
"Следовательно, если вы взглянете на имя ветки `o/master`, то здесь `main` - это имя ветки, а `o` - это имя удалённого репозитория.",
|
||||
"Следовательно, если вы взглянете на имя ветки `o/main`, то здесь `main` - это имя ветки, а `o` - это имя удалённого репозитория.",
|
||||
"",
|
||||
"Большинство разработчиков именуют свои главные удалённые репозитории не как `o`, а как `origin`. Также общепринятым является именование удалённого репозитория как `origin`, когда вы клонируете репозиторий командой `git clone`.",
|
||||
"",
|
||||
|
@ -692,9 +692,9 @@ exports.level = {
|
|||
"Давайте извлечём (check out) удалённую ветку и посмотрим что произойдёт"
|
||||
],
|
||||
"afterMarkdowns": [
|
||||
"Как вы можете видеть, git отделил (detached) `HEAD` и не обновил `o/master`, когда мы добавили новый коммит. Всё потому, что `o/master` обновится тогда и только тогда, когда обновится сам удалённый репозиторий."
|
||||
"Как вы можете видеть, git отделил (detached) `HEAD` и не обновил `o/main`, когда мы добавили новый коммит. Всё потому, что `o/main` обновится тогда и только тогда, когда обновится сам удалённый репозиторий."
|
||||
],
|
||||
"command": "git checkout o/master; git commit",
|
||||
"command": "git checkout o/main; git commit",
|
||||
"beforeCommand": "git clone"
|
||||
}
|
||||
},
|
||||
|
@ -702,7 +702,7 @@ exports.level = {
|
|||
"type": "ModalAlert",
|
||||
"options": {
|
||||
"markdowns": [
|
||||
"Для завершения уровня выполните коммит единожды на `main`, а затем на `o/master` (предварительно переключившись на эту ветку). Это наглядно продемонстрирует поведение удалённых веток, а также покажет, как изменения влияют на состояние удалённых репозиториев."
|
||||
"Для завершения уровня выполните коммит единожды на `main`, а затем на `o/main` (предварительно переключившись на эту ветку). Это наглядно продемонстрирует поведение удалённых веток, а также покажет, как изменения влияют на состояние удалённых репозиториев."
|
||||
]
|
||||
}
|
||||
}
|
||||
|
@ -718,7 +718,7 @@ exports.level = {
|
|||
"",
|
||||
"이제 `git clone`을 직접 확인 해 보셨습니다. 이제 무엇이 변했는지 살펴 봅시다.",
|
||||
"",
|
||||
"가장 먼저 알아차릴만한 변화는 우리의 로컬 저장소에 `o/master`라고하는 새 브랜치가 생긴겁니다. 이런 종류의 브랜치는 _원격_브랜치라고 불립니다; 원격 브랜치는 특정한 목적을 제공하기 때문에 특별한 속성들이 있습니다.",
|
||||
"가장 먼저 알아차릴만한 변화는 우리의 로컬 저장소에 `o/main`라고하는 새 브랜치가 생긴겁니다. 이런 종류의 브랜치는 _원격_브랜치라고 불립니다; 원격 브랜치는 특정한 목적을 제공하기 때문에 특별한 속성들이 있습니다.",
|
||||
"",
|
||||
"원격 브랜치는 원격 저장소의 _상태_를 반영합니다(가장 최근 원격 원격저장소와 작업을 했을때를 기준으로). 원격 브랜치는 로컬에서의 작업과 공개적으로 되고있는 작업의 차이를 이해하는데 도와줍니다 -- 다른 사람들과 작업을 공유하기전에 반드시해야할 과정이죠.",
|
||||
"",
|
||||
|
@ -736,7 +736,7 @@ exports.level = {
|
|||
"",
|
||||
"* `<remote name>/<branch name>`",
|
||||
"",
|
||||
"이런 이유로, 만약 `o/master`라는 이름의 브랜치를 보게되면, 브랜치의 이름은 `main`이고 원격 저장소의 이름은 `o`인겁니다.",
|
||||
"이런 이유로, 만약 `o/main`라는 이름의 브랜치를 보게되면, 브랜치의 이름은 `main`이고 원격 저장소의 이름은 `o`인겁니다.",
|
||||
"",
|
||||
"대부분의 개발자들은 자신의 주 원격 저장소를 `o`가 아닌 `origin`이라고 짓습니다. 사실 보통 다 이렇게 쓰기 때문에 git은 저장소를 `git clone`하게 되면 원격 저장소의 이름을 `origin`이라고 자동으로 설정해놓습니다.",
|
||||
"",
|
||||
|
@ -753,9 +753,9 @@ exports.level = {
|
|||
"원격 브랜치를 체크아웃하고 무엇이 일어나는지 확인해 봅시다"
|
||||
],
|
||||
"afterMarkdowns": [
|
||||
"보이는것 처럼, git은 우리를 분리된 `HEAD` 모드로 만들고 새로운 커밋을 추가해도 `o/master`를 갱신하지 않습니다. 이것은 `o/master`가 원격 저장소가 갱신될때만 갱신되기 때문입니다."
|
||||
"보이는것 처럼, git은 우리를 분리된 `HEAD` 모드로 만들고 새로운 커밋을 추가해도 `o/main`를 갱신하지 않습니다. 이것은 `o/main`가 원격 저장소가 갱신될때만 갱신되기 때문입니다."
|
||||
],
|
||||
"command": "git checkout o/master; git commit",
|
||||
"command": "git checkout o/main; git commit",
|
||||
"beforeCommand": "git clone"
|
||||
}
|
||||
},
|
||||
|
@ -763,7 +763,7 @@ exports.level = {
|
|||
"type": "ModalAlert",
|
||||
"options": {
|
||||
"markdowns": [
|
||||
"다음 레벨로 가기 위해서는 `main`에서 한번 커밋하고 `o/master`를 체크아웃 하고 다시 한번 커밋을 하세요. 이를 통해서 원격 브랜치가 어떻게 다르게 작동하는지 알아보고, 원격 브랜치는 원격 저장소의 상태를 반영하기만 한다는것을 이해해 봅시다."
|
||||
"다음 레벨로 가기 위해서는 `main`에서 한번 커밋하고 `o/main`를 체크아웃 하고 다시 한번 커밋을 하세요. 이를 통해서 원격 브랜치가 어떻게 다르게 작동하는지 알아보고, 원격 브랜치는 원격 저장소의 상태를 반영하기만 한다는것을 이해해 봅시다."
|
||||
]
|
||||
}
|
||||
}
|
||||
|
@ -779,7 +779,7 @@ exports.level = {
|
|||
"",
|
||||
"Тепер, коли ти познайомився з `git clone` в дії, розгляньмо деталі й подивімося, що дійсно змінилося.",
|
||||
"",
|
||||
"Перше, що ти міг помітити -- це те, що з’явився новий бранч з назвою `o/master`. Такі гілки називаються _віддаленими_ (remote); віддалені гілки в гіт відіграють в певному сенсі унікальну роль, тому в них є деякі спеціальні властивості, непритаманні іншим гілкам.",
|
||||
"Перше, що ти міг помітити -- це те, що з’явився новий бранч з назвою `o/main`. Такі гілки називаються _віддаленими_ (remote); віддалені гілки в гіт відіграють в певному сенсі унікальну роль, тому в них є деякі спеціальні властивості, непритаманні іншим гілкам.",
|
||||
"",
|
||||
"Віддалені гілки відображають _стан_ віддалених репозиторіїв (точніше, стан віддаленого репо на момент останньої синхронізації). Вони дозволяють відрізняти та відслідковувати локальні зміни та зміни інших учасників, що є дуже важливим для успішної синхронізації роботи між різними репозиторіями.",
|
||||
"",
|
||||
|
@ -797,7 +797,7 @@ exports.level = {
|
|||
"",
|
||||
"* `<ім’я віддаленого репо>/<ім’я гілки>`",
|
||||
"",
|
||||
"Отже, якщо розглянути гілку з назвою `o/master`, то ім’я гілки -- це `main` а ім’я віддаленого репозиторію -- це `o`.",
|
||||
"Отже, якщо розглянути гілку з назвою `o/main`, то ім’я гілки -- це `main` а ім’я віддаленого репозиторію -- це `o`.",
|
||||
"",
|
||||
"Більшість розробників насправді називають ім’я головного віддаленого репозиторію `origin` (початок), а не `o`. Це настільки поширена практика, що гіт автоматично називає віддалений репозиторій `origin` коли ти його клонуєш.",
|
||||
"",
|
||||
|
@ -814,9 +814,9 @@ exports.level = {
|
|||
"Зробімо checkout віддаленої гілки й подивімось, що буде"
|
||||
],
|
||||
"afterMarkdowns": [
|
||||
"Як бачиш, git перейшов в стан `detached HEAD` і не оновив `o/master` коли ми зробили новий коміт. Це тому, що `o/master` буде оновлено лише тоді, коли буде оновлено віддалений репозиторій."
|
||||
"Як бачиш, git перейшов в стан `detached HEAD` і не оновив `o/main` коли ми зробили новий коміт. Це тому, що `o/main` буде оновлено лише тоді, коли буде оновлено віддалений репозиторій."
|
||||
],
|
||||
"command": "git checkout o/master; git commit",
|
||||
"command": "git checkout o/main; git commit",
|
||||
"beforeCommand": "git clone"
|
||||
}
|
||||
},
|
||||
|
@ -824,7 +824,7 @@ exports.level = {
|
|||
"type": "ModalAlert",
|
||||
"options": {
|
||||
"markdowns": [
|
||||
"Щоб пройти цей рівень, зроби один коміт в `main`, а потім переключись в `o/master` і закомітся ще раз. Це наглядно продемонструє поведінку віддалених гілок, а також покаже як зміни впливають на стан віддаленого репозиторію."
|
||||
"Щоб пройти цей рівень, зроби один коміт в `main`, а потім переключись в `o/main` і закомітся ще раз. Це наглядно продемонструє поведінку віддалених гілок, а також покаже як зміни впливають на стан віддаленого репозиторію."
|
||||
]
|
||||
}
|
||||
}
|
||||
|
@ -840,7 +840,7 @@ exports.level = {
|
|||
"",
|
||||
"Giờ bạn đã thấy cách thức hoạt động của `git clone`, cùng xem xét kỹ hơn những gì đã xảy ra.",
|
||||
"",
|
||||
"Điều đầu tiên mà có thể bạn để ý là một nhánh mới xuất hiện trong kho chứa địa phương của ta là `o/master`. Loại nhánh này được gọi là nhánh _từ xa_ (_remote_) ; nhánh từ xa có những thuộc tính đặc biệt vì chúng phục vụ những mục đích duy nhất.",
|
||||
"Điều đầu tiên mà có thể bạn để ý là một nhánh mới xuất hiện trong kho chứa địa phương của ta là `o/main`. Loại nhánh này được gọi là nhánh _từ xa_ (_remote_) ; nhánh từ xa có những thuộc tính đặc biệt vì chúng phục vụ những mục đích duy nhất.",
|
||||
"",
|
||||
"Nhánh từ xa phản ánh _trạng thái_ (_state_) của kho chứa từ xa (kể từ lần cuối cùng bạn tương tác với kho chứa từ xa). Chúng giúp bạn hiểu về sự khác biệt giữa công tác trên kho chứa cục bộ với kho chứa từ xa -- một bước quan trọng trước khi chia sẻ công việc của bạn với người khác.",
|
||||
"",
|
||||
|
@ -858,7 +858,7 @@ exports.level = {
|
|||
"",
|
||||
"* `<tên kho từ xa>/<tên nhánh>`",
|
||||
"",
|
||||
"Do đó, ở trong `o/master` thì `main` là tên nhánh còn `o` là tên kho chứa từ xa.",
|
||||
"Do đó, ở trong `o/main` thì `main` là tên nhánh còn `o` là tên kho chứa từ xa.",
|
||||
"",
|
||||
"Thực tế thì hầu hết các nhà phát triển đặt tên kho chứa từ xa là `origin` chứ không phải `o`. Nó trở thành thông lệ đến nỗi Git đặt tên `origin` cho kho chứa từ xa khi bạn dùng `git clone` để sao chép một kho chứa.",
|
||||
"",
|
||||
|
@ -875,9 +875,9 @@ exports.level = {
|
|||
"Hãy thử chuyển sang nhánh từ xa xem điểu gì xảy ra."
|
||||
],
|
||||
"afterMarkdowns": [
|
||||
"Như bạn thấy, git đưa ta vào trạng thái `HEAD` và không cập nhật nhánh `o/master` khi ta thêm một commit. Đó là bởi vì `o/master` chỉ cập nhật khi kho chứa từ xa được cập nhật."
|
||||
"Như bạn thấy, git đưa ta vào trạng thái `HEAD` và không cập nhật nhánh `o/main` khi ta thêm một commit. Đó là bởi vì `o/main` chỉ cập nhật khi kho chứa từ xa được cập nhật."
|
||||
],
|
||||
"command": "git checkout o/master; git commit",
|
||||
"command": "git checkout o/main; git commit",
|
||||
"beforeCommand": "git clone"
|
||||
}
|
||||
},
|
||||
|
@ -885,7 +885,7 @@ exports.level = {
|
|||
"type": "ModalAlert",
|
||||
"options": {
|
||||
"markdowns": [
|
||||
"Để hoàn thành cấp độ này, commit một lần trên `main` và một lần nữa sau khi chuyển sang `o/master`. Điều nãy sẽ giúp ta hiểu cách nhánh từ xa hành xử, chúng chỉ cập nhật để phản ánh trạng thái của kho chứa từ xa."
|
||||
"Để hoàn thành cấp độ này, commit một lần trên `main` và một lần nữa sau khi chuyển sang `o/main`. Điều nãy sẽ giúp ta hiểu cách nhánh từ xa hành xử, chúng chỉ cập nhật để phản ánh trạng thái của kho chứa từ xa."
|
||||
]
|
||||
}
|
||||
}
|
||||
|
@ -901,7 +901,7 @@ exports.level = {
|
|||
"",
|
||||
"Sedaj ko smo videli `git clone` v praksi se poglobimo v dejanske spremembe.",
|
||||
"",
|
||||
"Prva stvar, ki si jo morda opazil je, da se je pojavil nov branch na našem lokalnem repotu imenovan `o/master`. Temu tipu brancha pravimo _oddaljen_ (remote) branch; oddaljeni branchi imajo posebne lastnosti, ker služijo določenim namenom.",
|
||||
"Prva stvar, ki si jo morda opazil je, da se je pojavil nov branch na našem lokalnem repotu imenovan `o/main`. Temu tipu brancha pravimo _oddaljen_ (remote) branch; oddaljeni branchi imajo posebne lastnosti, ker služijo določenim namenom.",
|
||||
"",
|
||||
"Oddaljeni branchi odražajo _stanje_ oddaljenega repozitorija (od kar si nazadnje komuniciral z oddaljenim repotom). To ti morda pomaga razumeti razliko med tvojim lokalnim delom in delom, ki je javno -- ključni korak, preden deliš svoje delo z ostalimi.",
|
||||
"",
|
||||
|
@ -919,7 +919,7 @@ exports.level = {
|
|||
"",
|
||||
"* `<ime oddaljenega repota>/<ime brancha>`",
|
||||
"",
|
||||
"Posledično, če pogledamo branch poimenovan `o/master`, je ime brancha `main`, ime oddaljenega repota pa `o`.",
|
||||
"Posledično, če pogledamo branch poimenovan `o/main`, je ime brancha `main`, ime oddaljenega repota pa `o`.",
|
||||
"",
|
||||
"Večina razvijalcev v bistvu poimenuje njihov glavni oddaljeni repozitorij `origin`, ne `o`. To je takoj pogosto, da git ubistvu nastavi tvoj oddaljen repo z imenom `origin` ko izvedeš `git clone` nad repozitorijem.",
|
||||
"",
|
||||
|
@ -936,9 +936,9 @@ exports.level = {
|
|||
"Checkoutajmo oddaljen branch in poglejmo kaj se zgodi."
|
||||
],
|
||||
"afterMarkdowns": [
|
||||
"Kot lahko vidiš, nas git postavi v stanje ločenega `HEAD-a` in ne posodobi `o/master`, ko dodamo nov commit. To je zato, ker se bo `o/master` posodobil šele, ko se bo posodobil oddaljen repo."
|
||||
"Kot lahko vidiš, nas git postavi v stanje ločenega `HEAD-a` in ne posodobi `o/main`, ko dodamo nov commit. To je zato, ker se bo `o/main` posodobil šele, ko se bo posodobil oddaljen repo."
|
||||
],
|
||||
"command": "git checkout o/master; git commit",
|
||||
"command": "git checkout o/main; git commit",
|
||||
"beforeCommand": "git clone"
|
||||
}
|
||||
},
|
||||
|
@ -946,7 +946,7 @@ exports.level = {
|
|||
"type": "ModalAlert",
|
||||
"options": {
|
||||
"markdowns": [
|
||||
"Za dokončanje te stopnje, commitaj enkrat iz `main` in enkrat, ko checkoutaš `o/master`. To ti bo pomagalo osvojiti, kako se oddaljeni branchi obnašajo drugače in se posodobijo le da odražajo stanje na oddaljenem repozitoriju."
|
||||
"Za dokončanje te stopnje, commitaj enkrat iz `main` in enkrat, ko checkoutaš `o/main`. To ti bo pomagalo osvojiti, kako se oddaljeni branchi obnašajo drugače in se posodobijo le da odražajo stanje na oddaljenem repozitoriju."
|
||||
]
|
||||
}
|
||||
}
|
||||
|
|
|
@ -69,7 +69,7 @@ exports.level = {
|
|||
"There, we successfully deleted the `foo` branch on remote by pushing the concept of \"nothing\" to it. That kinda makes sense..."
|
||||
],
|
||||
"command": "git push origin :foo",
|
||||
"beforeCommand": "git clone; git push origin master:foo"
|
||||
"beforeCommand": "git clone; git push origin main:foo"
|
||||
}
|
||||
},
|
||||
{
|
||||
|
@ -122,7 +122,7 @@ exports.level = {
|
|||
"Ici, nous avons brillamment supprimé la branche `foo` du dépôt distant en lui envoyant le concept de \"rien\". Cela paraît à peu près logique..."
|
||||
],
|
||||
"command": "git push origin :foo",
|
||||
"beforeCommand": "git clone; git push origin master:foo"
|
||||
"beforeCommand": "git clone; git push origin main:foo"
|
||||
}
|
||||
},
|
||||
{
|
||||
|
@ -175,7 +175,7 @@ exports.level = {
|
|||
"Ahí está, borramos la rama `foo` exitosamente del remoto pusheándole el concepto de \"nada\". Tiene algo de sentido..."
|
||||
],
|
||||
"command": "git push origin :foo",
|
||||
"beforeCommand": "git clone; git push origin master:foo"
|
||||
"beforeCommand": "git clone; git push origin main:foo"
|
||||
}
|
||||
},
|
||||
{
|
||||
|
@ -228,7 +228,7 @@ exports.level = {
|
|||
"Ahí está, eliminamos la rama `foo` exitosamente del remoto haciendo push con \"nada\". Tiene algo de sentido..."
|
||||
],
|
||||
"command": "git push origin :foo",
|
||||
"beforeCommand": "git clone; git push origin master:foo"
|
||||
"beforeCommand": "git clone; git push origin main:foo"
|
||||
}
|
||||
},
|
||||
{
|
||||
|
@ -281,7 +281,7 @@ exports.level = {
|
|||
"Aqui, excluímos com sucesso o ramo `foo` do repositório remoto por meio de um push de \"coisa nenhuma\" direcionado a ele. Até que faz sentido..."
|
||||
],
|
||||
"command": "git push origin :foo",
|
||||
"beforeCommand": "git clone; git push origin master:foo"
|
||||
"beforeCommand": "git clone; git push origin main:foo"
|
||||
}
|
||||
},
|
||||
{
|
||||
|
@ -334,7 +334,7 @@ exports.level = {
|
|||
"Ahí está, borramos a rama `foo` exitosamente do remoto empurrando o concepto da \"nada\". Ten algo de sentido..."
|
||||
],
|
||||
"command": "git push origin :foo",
|
||||
"beforeCommand": "git clone; git push origin master:foo"
|
||||
"beforeCommand": "git clone; git push origin main:foo"
|
||||
}
|
||||
},
|
||||
{
|
||||
|
@ -387,7 +387,7 @@ exports.level = {
|
|||
"看吧,我們藉由把 source \"留空\",成功用 `push` 刪除了 `foo` branch,這合理吧..."
|
||||
],
|
||||
"command": "git push origin :foo",
|
||||
"beforeCommand": "git clone; git push origin master:foo"
|
||||
"beforeCommand": "git clone; git push origin main:foo"
|
||||
}
|
||||
},
|
||||
{
|
||||
|
@ -440,7 +440,7 @@ exports.level = {
|
|||
"就是这样子, 我们通过给 push 传空值 source,成功删除了远程仓库中的 `foo` 分支, 这真有意思..."
|
||||
],
|
||||
"command": "git push origin :foo",
|
||||
"beforeCommand": "git clone; git push origin master:foo"
|
||||
"beforeCommand": "git clone; git push origin main:foo"
|
||||
}
|
||||
},
|
||||
{
|
||||
|
@ -493,7 +493,7 @@ exports.level = {
|
|||
"Und schon haben wir `foo` erfolgreich auf dem Remote gelöscht, weil wir \"Leere\" darauf geschoben haben. Ist auf seine Weise irgendwie logisch ..."
|
||||
],
|
||||
"command": "git push origin :foo",
|
||||
"beforeCommand": "git clone; git push origin master:foo"
|
||||
"beforeCommand": "git clone; git push origin main:foo"
|
||||
}
|
||||
},
|
||||
{
|
||||
|
@ -546,7 +546,7 @@ exports.level = {
|
|||
"Как видите, мы удалили ветку `foo` в удаленном репозитории, попытавшить протолкнуть(git push) в неё \"ничего\"."
|
||||
],
|
||||
"command": "git push origin :foo",
|
||||
"beforeCommand": "git clone; git push origin master:foo"
|
||||
"beforeCommand": "git clone; git push origin main:foo"
|
||||
}
|
||||
},
|
||||
{
|
||||
|
@ -599,7 +599,7 @@ exports.level = {
|
|||
"됬습니다, 원격 저장소의 `foo`브랜치를 성공적으로 삭제했습니다. \"없음\"을 push한다는것이 이것을 이뤘습니다. 흠 말이 되는것 같네요 null을 push했어요..."
|
||||
],
|
||||
"command": "git push origin :foo",
|
||||
"beforeCommand": "git clone; git push origin master:foo"
|
||||
"beforeCommand": "git clone; git push origin main:foo"
|
||||
}
|
||||
},
|
||||
{
|
||||
|
@ -652,7 +652,7 @@ exports.level = {
|
|||
"Ось, ми успішно видалили гілку `foo` на віддаленому сервері, запушивши в неї \"ніщо\". Ну, ніби все правильно..."
|
||||
],
|
||||
"command": "git push origin :foo",
|
||||
"beforeCommand": "git clone; git push origin master:foo"
|
||||
"beforeCommand": "git clone; git push origin main:foo"
|
||||
}
|
||||
},
|
||||
{
|
||||
|
@ -705,7 +705,7 @@ exports.level = {
|
|||
"Đó, ta đã xóa thành công nhánh `foo` trên kho chứa từ xa bằng cách đẩy \"không gì cả\" lên nó. Khá là hợp lý..."
|
||||
],
|
||||
"command": "git push origin :foo",
|
||||
"beforeCommand": "git clone; git push origin master:foo"
|
||||
"beforeCommand": "git clone; git push origin main:foo"
|
||||
}
|
||||
},
|
||||
{
|
||||
|
@ -758,7 +758,7 @@ exports.level = {
|
|||
"Tako, uspešno smo izbrisali `foo` branch na oddaljenem repotu s konceptom pushanja \"ničesar\" nanj. To ima nekako smisel ..."
|
||||
],
|
||||
"command": "git push origin :foo",
|
||||
"beforeCommand": "git clone; git push origin master:foo"
|
||||
"beforeCommand": "git clone; git push origin main:foo"
|
||||
}
|
||||
},
|
||||
{
|
||||
|
|
File diff suppressed because it is too large
Load diff
Loading…
Add table
Add a link
Reference in a new issue