Final merge for Issue #165 PR #165

This commit is contained in:
hilojack 2014-03-03 15:45:27 +08:00 committed by Peter Cottle
parent c029a5876f
commit f0913d4e4c
16 changed files with 1197 additions and 7 deletions

View file

@ -4,11 +4,13 @@ exports.level = {
"startTree": "{\"branches\":{\"master\":{\"target\":\"C2\",\"id\":\"master\"},\"bugFix\":{\"target\":\"C3\",\"id\":\"bugFix\"},\"o/master\":{\"target\":\"C2\",\"id\":\"o/master\"},\"o/bugFix\":{\"target\":\"C3\",\"id\":\"o/bugFix\"}},\"commits\":{\"C0\":{\"parents\":[],\"id\":\"C0\",\"rootCommit\":true},\"C1\":{\"parents\":[\"C0\"],\"id\":\"C1\"},\"C2\":{\"parents\":[\"C1\"],\"id\":\"C2\"},\"C3\":{\"parents\":[\"C1\"],\"id\":\"C3\"}},\"HEAD\":{\"target\":\"bugFix\",\"id\":\"HEAD\"},\"originTree\":{\"branches\":{\"master\":{\"target\":\"C5\",\"id\":\"master\"},\"bugFix\":{\"target\":\"C7\",\"id\":\"bugFix\"}},\"commits\":{\"C0\":{\"parents\":[],\"id\":\"C0\",\"rootCommit\":true},\"C1\":{\"parents\":[\"C0\"],\"id\":\"C1\"},\"C2\":{\"parents\":[\"C1\"],\"id\":\"C2\"},\"C3\":{\"parents\":[\"C1\"],\"id\":\"C3\"},\"C4\":{\"parents\":[\"C2\"],\"id\":\"C4\"},\"C5\":{\"parents\":[\"C4\"],\"id\":\"C5\"},\"C6\":{\"parents\":[\"C3\"],\"id\":\"C6\"},\"C7\":{\"parents\":[\"C6\"],\"id\":\"C7\"}},\"HEAD\":{\"target\":\"bugFix\",\"id\":\"HEAD\"}}}",
"name": {
"en_US": "Git Fetchin'",
"de_DE": "Git Fetch"
"de_DE": "Git Fetch",
"zh_CN": "Git Fetchin'"
},
"hint": {
"en_US": "just run git fetch!",
"de_DE": "Einfach git fetch ausführen!"
"de_DE": "Einfach git fetch ausführen!",
"zh_CN": "just run git fetch!"
},
"startDialog": {
"en_US": {
@ -84,6 +86,77 @@ exports.level = {
}
]
},
"zh_CN":{
"childViews": [
{
"type": "ModalAlert",
"options": {
"markdowns": [
"## Git Fetch",
"",
"git remote可以归结为向其它仓库推送/拉取数据. 只要我们能回溯或前推提交, 我们就可以分享任何类型的被git跟踪的更新(工作, 新想法, 情书等等)",
"",
"本节课我们将学习 如何从远端仓库获取数据 -- 这个命令叫` git fetch`",
"",
"你会注意到当我们更新远端的仓库时, 我们的远端分支也会更新 并映射到最新的远端仓库."
]
}
},
{
"type": "GitDemonstrationView",
"options": {
"beforeMarkdowns": [
"在解释`git fetch`前, 我们看看实例. 这里我们有一个包含了两个新提交的远端仓库, 这两新提交不存在于本地"
],
"afterMarkdowns": [
"就是这样了! `C2`,`C3`被下载到了本地仓库, 同时`o/master`被更新并映射到了这一变更 "
],
"command": "git fetch",
"beforeCommand": "git clone; git fakeTeamwork 2"
}
},
{
"type": "ModalAlert",
"options": {
"markdowns": [
"### What fetch does",
"",
"`git fetch` 完成了两步:",
"",
"* 下载本地仓库未包含的提交对象",
"* 更新我们的远端分支点(如, `o/master`)",
"",
"`git fetch` 实际上将本地对远端的映射 做了同步更新",
"",
"如果你还记得之前的课程, 我们说过远端分支映射了远端仓库的状态(你最后与远端通信的那一刻), `git fetch` 是你与远端交流的方式!",
"",
"`git fetch` 通常通过互联网(像 `http://` or `git://`) 与远端仓库通信.",
""
]
}
},
{
"type": "ModalAlert",
"options": {
"markdowns": [
"### fetch 不能做的事",
"",
"`git fetch`, 不能改变你的本地状态. 你不会更新你的`master` 或者 任何与文件系统相关的东西.",
"",
"所以, 你可以将`git fetch`的执行 视为下载"
]
}
},
{
"type": "ModalAlert",
"options": {
"markdowns": [
"要完成本节, 只需用`git fetch`下载所有的提交! "
]
}
}
]
},
"de_DE": {
"childViews": [
{