mirror of
https://github.com/pcottle/learnGitBranching.git
synced 2025-07-14 00:24:28 +02:00
update jugglingCommits
This commit is contained in:
parent
c229bb6230
commit
eae04f6a78
2 changed files with 17 additions and 17 deletions
|
@ -21,14 +21,14 @@ exports.level = {
|
|||
"en_US": "Juggling Commits #2",
|
||||
"ja": "コミットをやりくりする その2",
|
||||
"zh_CN": "提交交换戏法 #2",
|
||||
"zh_TW": "提交交換戲法 #2"
|
||||
"zh_TW": "commit 的戲法 #2"
|
||||
},
|
||||
"hint": {
|
||||
"en_US": "Don't forget to forward master to the updated changes!",
|
||||
"ja": "masterのポインタを先に進めることを忘れずに!",
|
||||
"ko": "master를 변경 완료한 커밋으로 이동(forward)시키는 것을 잊지 마세요!",
|
||||
"zh_CN": "别忘记了将 master 快进到最新的更新上!",
|
||||
"zh_TW": "別忘記了將 master 快進到最新的更新上!"
|
||||
"zh_TW": "別忘記了將 master 推到最新的修改上面!"
|
||||
},
|
||||
"startDialog": {
|
||||
"en_US": {
|
||||
|
@ -162,13 +162,13 @@ exports.level = {
|
|||
"type": "ModalAlert",
|
||||
"options": {
|
||||
"markdowns": [
|
||||
"## 提交變換戲法 #2",
|
||||
"## commit 的戲法 #2",
|
||||
"",
|
||||
"*假如你還沒有完成提交變換戲法 #1(前一關),這關不讓玩哦!*",
|
||||
"*假如你還沒有完成 commit 的戲法 #1(前面那一個關卡),請先完成之後再來這一關!*",
|
||||
"",
|
||||
"如你在上一關所見,我們使用 `rebase -i` 來重排那些提交。只要把我們想要的提交挪到最頂端,我們就可以很容易地改變它,然後把它們重新排成我們想要的順序。",
|
||||
"如你在上一個關卡所看到的,我們使用 `rebase -i` 來重新排列那些 commit。只要把我們想要修改的 commit 移到最前面,我們就可以很容易地重新修改它,然後再把它們重新排成我們想要的順序。",
|
||||
"",
|
||||
"但唯一的問題就是這樣做就要排很多次,有可能造成衍合衝突(rebase conflicts)。下面就看看用另外一種方法 `git cherry-pick` 是怎麼做的吧。"
|
||||
"但唯一的問題就是這樣做就要排很多次,有可能造成 rebase conflicts。下面就看看用另外一種方法 `git cherry-pick` 是怎麼做的吧!"
|
||||
]
|
||||
}
|
||||
},
|
||||
|
@ -176,13 +176,13 @@ exports.level = {
|
|||
"type": "GitDemonstrationView",
|
||||
"options": {
|
||||
"beforeMarkdowns": [
|
||||
"要在心理牢記 cherry-pick 可以從提交樹的任何地方拿一個提交來放在 HEAD 上(儘管那個提交不在上游)。",
|
||||
"要記住喔! cherry-pick 可以從 commit tree 的任何地方拿一個 commit 來放在 HEAD 上(只要那個 commit 不是 HEAD 的 ancestor)。",
|
||||
"",
|
||||
"下面是一個小小的演示:"
|
||||
"下面是一個簡單清楚的 demo:"
|
||||
],
|
||||
"command": "git cherry-pick C2",
|
||||
"afterMarkdowns": [
|
||||
"好滴咧,我們繼續"
|
||||
"太棒了,我們繼續吧!"
|
||||
],
|
||||
"beforeCommand": "git checkout -b bugFix; git commit; git checkout master; git commit"
|
||||
}
|
||||
|
@ -191,7 +191,7 @@ exports.level = {
|
|||
"type": "ModalAlert",
|
||||
"options": {
|
||||
"markdowns": [
|
||||
"那麼這關呢,和上一關一樣要改變提交 `C2`,但你要避免使用 `rebase -i`。自己想想要怎麼解決吧,騷年! :D"
|
||||
"在這一關和上一關一樣要去修改一個 commit 叫做`C2`,但你要避免使用 `rebase -i`。自己想想看要怎麼解決吧!"
|
||||
]
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue