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

View file

@ -170,7 +170,7 @@ exports.level = {
"markdowns": [ "markdowns": [
"### Branch forcing", "### Branch forcing",
"", "",
"你現在是相對引用的高手了,現在 *用* 他來實際做點事情。", "你現在是相對引用的高手了,現在用它來實際做點事情。",
"", "",
"我使用相對引用最多的就是移動分支。你可以使用 `-f` 選項直接讓分支指向另一個 commit。舉個例子:", "我使用相對引用最多的就是移動分支。你可以使用 `-f` 選項直接讓分支指向另一個 commit。舉個例子:",
"", "",

View file

@ -299,7 +299,7 @@ exports.level = {
], ],
"command": "git reset HEAD~1", "command": "git reset HEAD~1",
"afterMarkdowns": [ "afterMarkdowns": [
"太好了! Git 把 master 分支簡單地移回到 `C1`;現在在我們的 local 已經退回到沒有 commit 過 `C2` 的狀態了。" "太好了! Git 把 master 分支簡單地移回到 `C1`;現在在我們的 local 端已經退回到沒有 commit 過 `C2` 的狀態了。"
], ],
"beforeCommand": "git commit" "beforeCommand": "git commit"
} }
@ -310,7 +310,7 @@ exports.level = {
"beforeMarkdowns": [ "beforeMarkdowns": [
"## Git Revert", "## Git Revert",
"", "",
"雖然在你的local分支中使用`git reset`很方便,但是這種「改寫歷史」的方法對別人的遠端分支是無效的哦!", "雖然在你的 local 分支中使用 `git reset` 很方便,但是這種「改寫歷史」的方法對別人的遠端分支是無效的哦!",
"", "",
"為了取消修改並且把這個狀態*分享*給別人,我們需要使用 `git revert`。舉個例子" "為了取消修改並且把這個狀態*分享*給別人,我們需要使用 `git revert`。舉個例子"
], ],