mirror of
https://github.com/pcottle/learnGitBranching.git
synced 2025-07-10 14:44:28 +02:00
Add git to Begining of Code Example
Reduce confusion if "commit" is a command or a sub-command of git.
This commit is contained in:
parent
8cf8faa5fe
commit
5259aed2b7
1 changed files with 14 additions and 14 deletions
|
@ -73,7 +73,7 @@ exports.level = {
|
|||
"We will overcome this difficulty by doing the following:",
|
||||
"",
|
||||
"* We will re-order the commits so the one we want to change is on top with `git rebase -i`",
|
||||
"* We will `commit --amend` to make the slight modification",
|
||||
"* 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)",
|
||||
"",
|
||||
|
@ -107,7 +107,7 @@ exports.level = {
|
|||
"Nous allons régler le problème en faisant ceci :",
|
||||
"",
|
||||
"* Nous allons réordonner les commits pour que celui que nous voulions changer soit sur le dessus `git rebase -i`",
|
||||
"* Nous allons utiliser `commit --amend` pour faire les petites modifications",
|
||||
"* 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)",
|
||||
"",
|
||||
|
@ -142,7 +142,7 @@ exports.level = {
|
|||
"Superaremos esta dificultad haciendo lo siguiente:",
|
||||
"",
|
||||
"* Vamos a reordenar los commits para que el que queremos cambiar quede arriba de todo con `git rebase -i`",
|
||||
"* Vamos a hacer `commit --amend` para aplicar la ligera modificación",
|
||||
"* 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)",
|
||||
"",
|
||||
|
@ -177,7 +177,7 @@ exports.level = {
|
|||
"Superaremos esta dificultad haciendo lo siguiente:",
|
||||
"",
|
||||
"* Vamos a reordenar los commits para que el que queremos cambiar quede arriba de los demás con `git rebase -i`",
|
||||
"* Vamos a hacer `commit --amend` para aplicar la ligera modificación",
|
||||
"* 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)",
|
||||
"",
|
||||
|
@ -288,7 +288,7 @@ exports.level = {
|
|||
"",
|
||||
"Es gibt sehr viele Wege um das Endziel dieses Levels zu erreichen (ich sehe, du schielst auf `cherry-pick`) und wir werden uns später noch andere ansehen. Aber für's erste lass uns diese Methode ausprobieren.",
|
||||
"",
|
||||
"Beachte den geschilderten Zielzustand. Da wir die Commits zweimal umsortieren bekommen sie jedesmal ein Apostroph hinzugefügt (weil sie jedesmal kopiert werden). Ein weiteres Apostroph entsteht durch den `commit --amend`.",
|
||||
"Beachte den geschilderten Zielzustand. Da wir die Commits zweimal umsortieren bekommen sie jedesmal ein Apostroph hinzugefügt (weil sie jedesmal kopiert werden). Ein weiteres Apostroph entsteht durch den `git commit --amend`.",
|
||||
"",
|
||||
"Zuguterletzt noch eine Bemerkung: ich kann Level nur auf Struktur und Apostroph-Differenz prüfen. So lange wie dein `master` am Ende dieselbe Struktur und Apostroph-Differenz aufweist wie der Ziel-`master`, ist der Level bestanden."
|
||||
]
|
||||
|
@ -317,7 +317,7 @@ exports.level = {
|
|||
"この困難な状況を、以下の手順で克服することを考えます:",
|
||||
"",
|
||||
"* `git rebase -i`を使って順番を変更する。これで、変更をかけたいコミットを一番先頭に持ってくる。",
|
||||
"* `commit --amend`コマンドで僅かな変更を行う",
|
||||
"* `git commit --amend`コマンドで僅かな変更を行う",
|
||||
"* `git rebase -i`コマンドを再度使って、先頭に持ってきていたコミットを元に戻す",
|
||||
"* 最後に、レベルクリアのためにmasterブランチを先頭に持ってくる",
|
||||
"",
|
||||
|
@ -350,7 +350,7 @@ exports.level = {
|
|||
"我们可以通过下面的方法来克服困难:",
|
||||
"",
|
||||
"* 先用 `git rebase -i` 将提交重新排序,然后把我们想要修改的提交记录挪到最前",
|
||||
"* 然后用 `commit --amend` 来进行一些小修改",
|
||||
"* 然后用 `git commit --amend` 来进行一些小修改",
|
||||
"* 接着再用 `git rebase -i` 来将他们调回原来的顺序",
|
||||
"* 最后我们把 master 移到修改的最前端(用你自己喜欢的方法),就大功告成啦!",
|
||||
"",
|
||||
|
@ -384,7 +384,7 @@ exports.level = {
|
|||
"為了克服這個困難,我們可以按照下面的方法來做:",
|
||||
"",
|
||||
"* 先用 `git rebase -i` 將 commit 重新排序,然後把我們想要修改的 commit 移到最前面",
|
||||
"* 然後用 `commit --amend` 來進行一些修改",
|
||||
"* 然後用 `git commit --amend` 來進行一些修改",
|
||||
"* 接著再用 `git rebase -i` 來將他們按照最開始的順序重新排好",
|
||||
"* 最後我們把 master 移到這個修改的最前端(用你自己喜歡的方法),就大功告成啦!",
|
||||
"",
|
||||
|
@ -417,7 +417,7 @@ exports.level = {
|
|||
"이 문제를 다음과 같이 풀어봅시다:",
|
||||
"",
|
||||
"* `git rebase -i` 명령으로 우리가 바꿀 커밋을 가장 최근 순서로 바꾸어 놓습니다",
|
||||
"* `commit --amend` 명령으로 커밋 내용을 정정합니다",
|
||||
"* `git commit --amend` 명령으로 커밋 내용을 정정합니다",
|
||||
"* 다시 `git rebase -i` 명령으로 이 전의 커밋 순서대로 되돌려 놓습니다",
|
||||
"* 마지막으로, master를 지금 트리가 변경된 부분으로 이동합니다. (편하신 방법으로 하세요)",
|
||||
"",
|
||||
|
@ -450,13 +450,13 @@ exports.level = {
|
|||
"Преодолеть эти трудности можно следующим образом:",
|
||||
"",
|
||||
"* Переставить коммит так, чтобы нужный находился наверху при помощи `git rebase -i`",
|
||||
"* Внести изменения при помощи `commit --amend`",
|
||||
"* Внести изменения при помощи `git commit --amend`",
|
||||
"* Переставить всё обратно при помощи `git rebase -i`",
|
||||
"* И наконец, переместить master на изменённую часть дерева, чтобы закончить уровень.",
|
||||
"",
|
||||
"Это задание можно выполнить несколькими способами (и, гляжу, ты посматриваешь на cherry-picking), но сейчас сосредоточься на вышеописанном методе.",
|
||||
"",
|
||||
"Обрати внимание на итоговое состояние в этом уровне – так как мы дважды перемещаем коммиты, оба они получат по апострофу. Ещё один апостроф добавляется, когда мы делаем `commit --amend`.",
|
||||
"Обрати внимание на итоговое состояние в этом уровне – так как мы дважды перемещаем коммиты, оба они получат по апострофу. Ещё один апостроф добавляется, когда мы делаем `git commit --amend`.",
|
||||
"",
|
||||
"Важно, чтобы совпадало не только дерево коммитов, но и количество апострофов."
|
||||
]
|
||||
|
@ -485,7 +485,7 @@ exports.level = {
|
|||
"Ми поборимо цю складність наступним чином:",
|
||||
"",
|
||||
"* Ми відсортуємо коміти таким чином, щоб той, який ми хочемо змінити, був останнім за допомогою `git rebase -i`",
|
||||
"* Ми виконаємо `commit --amend` щоб внести невелику правку до останнього коміту",
|
||||
"* Ми виконаємо `git commit --amend` щоб внести невелику правку до останнього коміту",
|
||||
"* Тоді ми відсортуємо коміти в попередньому порядку, за допомогою `git rebase -i`",
|
||||
"* І на останок, ми пересунемо master на змінену частину дерева щоб закінчити цей рівень(ти можеш вибрати метод)",
|
||||
"",
|
||||
|
@ -519,7 +519,7 @@ exports.level = {
|
|||
"Để khắc phục khó khăn này ta có thể làm như sau:",
|
||||
"",
|
||||
"* Ta sẽ dùng `git rebase -i` sắp xếp lại commit để cái ta cần sửa sẽ nằm trên cùng",
|
||||
"* Ta sẽ dùng `commit --amend` tạo ra một điều chỉnh nhỏ",
|
||||
"* Ta sẽ dùng `git commit --amend` tạo ra một điều chỉnh nhỏ",
|
||||
"* Sau đó ta sẽ lại sắp xếp lại commit như trước bằng cách dùng `git rebase -i`",
|
||||
"* Cuối cùng, ta sẽ chuyển `master` tới phần đã cập nhật để hoàn thành cấp độ (dùng cách nào tùy bạn)",
|
||||
"",
|
||||
|
@ -553,7 +553,7 @@ exports.level = {
|
|||
"Ta izziv bomo rešili takole:",
|
||||
"",
|
||||
"* Preuredili bomo commite tako, da bo tisti, ki ga želimo spremeniti, na vrhu z `git rebase -i`",
|
||||
"* Izvedli bomo `commit --amend`, da naredimo naš popravek",
|
||||
"* 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)",
|
||||
"",
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue