mirror of
https://github.com/pcottle/learnGitBranching.git
synced 2025-08-05 10:35:32 +02:00
correct chinese grammar and syntax
This commit is contained in:
parent
5cd22772ac
commit
3e7e1e66c6
5 changed files with 56 additions and 56 deletions
|
@ -5,12 +5,12 @@ exports.level = {
|
|||
"name": {
|
||||
"en_US": "Relative Refs (^)",
|
||||
"zh_CN": "相对引用(^)",
|
||||
"zh_TW": "相對引用(^)"
|
||||
"zh_TW": "相對引用(^)"
|
||||
},
|
||||
"hint": {
|
||||
"en_US": "Remember the Caret (^) operator!",
|
||||
"zh_CN": "记住插入(^)操作符!",
|
||||
"zh_TW": "記住插入(^)運算符號!"
|
||||
"zh_TW": "不要忘記插入(^) 符號!"
|
||||
},
|
||||
"startDialog": {
|
||||
"en_US": {
|
||||
|
@ -171,11 +171,11 @@ exports.level = {
|
|||
"markdowns": [
|
||||
"## 相對引用",
|
||||
"",
|
||||
"如果要在Git中移動,透過指定commit的hash值的方式會變得比較麻煩。在現實中,你的終端機上面不會出現漂亮且具備視覺效果的commit tree,所以你不得不用`git log`來查詢hash值。",
|
||||
"如果要在 Git 中移動,透過指定 commit 的 hash 值的方式會變得比較麻煩。在實際例子中,你的終端機上面不會出現漂亮且具備視覺效果的 commit tree,所以你不得不用 `git log` 來查詢 hash 值。",
|
||||
"",
|
||||
"另外,hash值在真實的Git環境中也會很長。舉個例子,前一個關卡的介紹中的commit的hash值是`fed2da64c0efc5293610bdd892f82a58e8cbc5d8`。舌頭不要打結了...",
|
||||
"另外,hash 值的長度在真實的 Git 環境中很長。舉個例子,前一個關卡的介紹中的 commit 的 hash 值是 `fed2da64c0efc5293610bdd892f82a58e8cbc5d8`。舌頭不要打結了...",
|
||||
"",
|
||||
"好的一面是,Git對於處理hash很有一套。你只需要提供能夠唯一辨識出該commit的前幾個字元就可以了。所以,我可以只輸入`fed2`而不是上面的一長串字元。"
|
||||
"幸運的是, Git 對於處理 hash 很有一套。你只需要提供能夠唯一辨識出該 commit 的前幾個字元就可以了。所以,我可以只輸入 `fed2` 而不是上面的一長串字元。"
|
||||
]
|
||||
}
|
||||
},
|
||||
|
@ -183,14 +183,14 @@ exports.level = {
|
|||
"type": "ModalAlert",
|
||||
"options": {
|
||||
"markdowns": [
|
||||
"我說過,透過hash來指定commit不是很方便,所以Git加入了相對引用。這個就很厲害了!",
|
||||
"我說過,透過 hash 來指定 commit 不是很方便,所以 Git 加入了相對引用。這個就很厲害了!",
|
||||
"",
|
||||
"使用相對引用,你可以從一個易於記憶的地方(比如說分支名稱`bugFix`或`HEAD`)開始工作。",
|
||||
"使用相對引用,你可以從一個易於記憶的地方(比如說分支名稱 `bugFix` 或 `HEAD`)開始工作。",
|
||||
"",
|
||||
"相對引用非常好用,這裡我介紹兩個簡單的用法:",
|
||||
"",
|
||||
"* 使用`^`向上移動1個commit",
|
||||
"* 使用`~<num>`向上移動多個commit"
|
||||
"* 使用 `^` 向上移動一個 commit",
|
||||
"* 使用 `~<num>` 向上移動多個 commit"
|
||||
]
|
||||
}
|
||||
},
|
||||
|
@ -198,16 +198,16 @@ exports.level = {
|
|||
"type": "GitDemonstrationView",
|
||||
"options": {
|
||||
"beforeMarkdowns": [
|
||||
"首先看看插入(^)這一個運算符號。把這個運算符號寫在某一個參考後面,就表示你叫Git去找到該參考所指向的commit的parent commit。",
|
||||
"首先看看插入(^)這一個符號。把這個符號接在某一個 reference 後面,就表示你告訴 Git 去找到該 reference 所指向的 commit 的 parent commit。",
|
||||
"",
|
||||
"所以`master^`相當於\"`master`的parent commit\"。",
|
||||
"所以 `master^` 相當於 \"`master` 的 parent commit\"。",
|
||||
"",
|
||||
"`master^^`是`master`的grandparent commit(往前推兩代)",
|
||||
" `master^^` 是 `master` 的 grandparent commit(往前推兩代)",
|
||||
"",
|
||||
"切換到master的parent commit"
|
||||
"切換到 master的 parent commit"
|
||||
],
|
||||
"afterMarkdowns": [
|
||||
"看吧!完成了。這種方式比輸入代表commit的hash值簡單多了!"
|
||||
"看吧!完成了。這種方式比輸入代表 commit 的 hash 值簡單多了!"
|
||||
],
|
||||
"command": "git checkout master^",
|
||||
"beforeCommand": "git commit"
|
||||
|
@ -217,10 +217,10 @@ exports.level = {
|
|||
"type": "GitDemonstrationView",
|
||||
"options": {
|
||||
"beforeMarkdowns": [
|
||||
"你也可以把`HEAD`當作相對引用。以下指令使用`HEAD`在commit tree中向上移動數次。"
|
||||
"你也可以把 `HEAD` 當作相對引用。以下指令使用 `HEAD` 在 commit tree 中向上移動數次。"
|
||||
],
|
||||
"afterMarkdowns": [
|
||||
"簡單吧!我們可以一直使用`HEAD^`向上移動。"
|
||||
"簡單吧!我們可以一直使用 `HEAD^` 向上移動。"
|
||||
],
|
||||
"command": "git checkout C3; git checkout HEAD^; git checkout HEAD^; git checkout HEAD^",
|
||||
"beforeCommand": "git commit; git commit"
|
||||
|
@ -230,9 +230,9 @@ exports.level = {
|
|||
"type": "ModalAlert",
|
||||
"options": {
|
||||
"markdowns": [
|
||||
"要完成這一關,切換到`bugFix`的parent commit。這會分離出`HEAD`.",
|
||||
"要完成這一關,切換到 `bugFix` 的 parent commit。這會分離出 `HEAD`。",
|
||||
"",
|
||||
"如果你願意的話,透過指定hash值也可以過關,但是還是試試看相對引用吧!"
|
||||
"如果你願意的話,透過直接指定 hash 值的方式也可以過關,但是還是試試看相對引用吧!"
|
||||
]
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue