mirror of
https://github.com/pcottle/learnGitBranching.git
synced 2025-08-31 23:40: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
|
@ -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!"
|
||||
]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue