mirror of
https://github.com/pcottle/learnGitBranching.git
synced 2025-07-29 23:24:44 +02:00
Fix Chinese translation.
This commit is contained in:
parent
0bec45844c
commit
93e7e9eb3e
9 changed files with 17 additions and 17 deletions
|
@ -562,7 +562,7 @@ exports.level = {
|
|||
"",
|
||||
"很好! 既然你知道了远程跟踪分支,我们可以开始揭开 git push、fetch 和 pull 的神秘面纱了。我们会逐个介绍这几个命令,它们在理念上是非常相似的。",
|
||||
"",
|
||||
"首先来看 `git push`。在远程跟踪课程中,你已经学到了 Git 是通过当前检出分支的属性来确定远程仓库以及要 push 的目的地的。这是未指定参数时的行为,我们可以为 push 指定参数,语法是:",
|
||||
"首先来看 `git push`。在远程跟踪课程中,你已经学到了 Git 是通过当前所在分支的属性来确定远程仓库以及要 push 的目的地的。这是未指定参数时的行为,我们可以为 push 指定参数,语法是:",
|
||||
"",
|
||||
"`git push <remote> <place>`",
|
||||
"",
|
||||
|
@ -584,7 +584,7 @@ exports.level = {
|
|||
"",
|
||||
"我们通过“place”参数来告诉 Git 提交记录来自于 main, 要推送到远程仓库中的 main。它实际就是要同步的两个仓库的位置。",
|
||||
"",
|
||||
"需要注意的是,因为我们通过指定参数告诉了 Git 所有它需要的信息, 所以它就忽略了我们所检出的分支的属性!"
|
||||
"需要注意的是,因为我们通过指定参数告诉了 Git 所有它需要的信息, 所以它就忽略了我们所切换分支的属性!"
|
||||
]
|
||||
}
|
||||
},
|
||||
|
@ -592,7 +592,7 @@ exports.level = {
|
|||
"type": "GitDemonstrationView",
|
||||
"options": {
|
||||
"beforeMarkdowns": [
|
||||
"我们看看指定参数的例子。注意下我们当前检出的位置。"
|
||||
"我们看看指定参数的例子。注意下我们当前分支的位置。"
|
||||
],
|
||||
"afterMarkdowns": [
|
||||
"好了! 通过指定参数, 远程仓库中的 `main` 分支得到了更新。"
|
||||
|
@ -608,7 +608,7 @@ exports.level = {
|
|||
"如果不指定参数会发生什么呢?"
|
||||
],
|
||||
"afterMarkdowns": [
|
||||
"命令失败了(正如你看到的,什么也没有发生)! 因为我们所检出的 HEAD 没有跟踪任何分支。"
|
||||
"命令失败了(正如你看到的,什么也没有发生)! 因为我们所切换的 HEAD 没有跟踪任何分支。"
|
||||
],
|
||||
"command": "git checkout C0; git push",
|
||||
"beforeCommand": "git clone; git commit"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue