update multiplePatents.js

This commit is contained in:
mht 2013-12-11 22:37:04 +08:00
parent 822c9885f9
commit b2082cb9fd
3 changed files with 22 additions and 22 deletions

View file

@ -5,12 +5,12 @@ exports.level = {
"name": {
"en_US": "Multiple parents",
"zh_CN": "多个父提交记录",
"zh_TW": "多個父提交記錄"
"zh_TW": "多個 parent commit"
},
"hint": {
"en_US": "Use `git branch bugWork` with a target commit to create the missing reference.",
"zh_CN": "使用`git branch bugWork`加上一个目标提交记录来创建消失的引用。",
"zh_TW": "使用`git branch bugWork`加上一個目標提交記錄來創建消失的引用。"
"zh_TW": "在一個指定的 commit 上面使用 `git branch bugWork`。"
},
"startDialog": {
"en_US": {
@ -193,15 +193,15 @@ exports.level = {
"type": "ModalAlert",
"options": {
"markdowns": [
"### 選擇父提交",
"### 選擇 parent commit",
"",
"和`~`修改符一樣,`^`修改符之後也可以跟一個(可選的)數字。",
"和`~`符號一樣,`^`符號的後面也可以接一個(可選的)數字。",
"",
"這不是用來指定向上返回幾代(`~`的作用),`^`後的數字指定跟隨合併提交記錄的哪一個父提交。還記得一個合併提交有多個父提交吧,所有選擇哪條路徑不是那麼清晰。",
"這不是用來指定往上回去幾代(`~`的作用),`^`後面所跟的數字表示我要選擇哪一個 parent commit。還記得一個 merge commit 可以有多個 parent commit 吧,所以當我們要選擇走到哪一個 parent commit 的時候就會比較麻煩了。",
"",
"Git默認選擇跟隨合併提交的\"第一個\"父提交,使用`^`後跟一個數字來改變這一默認行為。",
"Git 預設會選擇 merge commit 的\"第一個\" parent commit使用`^`後面接一個數字可以改變這個預設的行為。",
"",
"廢話不多說,舉個例子。",
"廢話不多說,舉個例子。",
""
]
}
@ -210,12 +210,12 @@ exports.level = {
"type": "GitDemonstrationView",
"options": {
"beforeMarkdowns": [
"這裡有一個合併提交。如果不加數字修改符直接切換到`master^`,會回到第一個父提交。",
"這裡有一個 merge commit。如果後面不加數字的話會直接切換到`master^`,也就是說會回到第一個 parent commit。",
"",
"(*在我們的圖示中,第一個父提交是指合併提交正上方的那個父提交。*)"
"(*在我們的圖示中,第一個 parent commit 是指 merge commit 正上方的那一個 parent commit。*)"
],
"afterMarkdowns": [
"OK--這恰好是我們想要的。"
"簡單吧--這就是預設的情況。"
],
"command": "git checkout master^",
"beforeCommand": "git checkout HEAD^; git commit; git checkout master; git merge C2"
@ -225,10 +225,10 @@ exports.level = {
"type": "GitDemonstrationView",
"options": {
"beforeMarkdowns": [
"現在來試試選擇第二個父提交……"
"現在來試試選擇第二個 parent commit……"
],
"afterMarkdowns": [
"看見了吧?我們回到了第二個父提交。"
"看到了嗎?我們回到了第二個 parent commit。"
],
"command": "git checkout master^2",
"beforeCommand": "git checkout HEAD^; git commit; git checkout master; git merge C2"
@ -238,10 +238,10 @@ exports.level = {
"type": "GitDemonstrationView",
"options": {
"beforeMarkdowns": [
"使用`^`和`~`可以自由在在提交樹中移動:"
"使用`^`和`~`可以自由在 commit tree 中移動:"
],
"afterMarkdowns": [
"快若閃電"
"簡直就像是電光石火"
],
"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"
@ -251,10 +251,10 @@ exports.level = {
"type": "GitDemonstrationView",
"options": {
"beforeMarkdowns": [
"再瘋狂點,這些修改符支持鏈式操作!試一下這個:"
"再瘋狂點,這些符號可以被連在一起!試一下這個:"
],
"afterMarkdowns": [
"和前面的結果一樣,但只用了一條令。"
"和前面的結果一樣,但只用了一條令。"
],
"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"
@ -264,11 +264,11 @@ exports.level = {
"type": "ModalAlert",
"options": {
"markdowns": [
"### 實踐一下",
"### 練習一下",
"",
"要完成此關,在指定的目標位置創建一個新的分支。",
"要完成這一關,在指定的目標位置上面建立一個新的分支。",
"",
"很明顯可以簡單的直接使用提交記錄的hash值比如`C6`),但我要求你使用剛剛講到的相對引用修飾符"
"很明顯可以直接使用 commit 的 hash 值(比如 `C6`),但我要求你使用剛剛講到的相對引用的符號"
]
}
}