File tree 1 file changed +2
-2
lines changed
book/03-git-branching/sections
1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -42,7 +42,7 @@ image::images/remote-branches-2.png[本地与远程的工作可以分叉。]
42
42
.`git fetch` 更新你的远程仓库引用
43
43
image::images/remote-branches-3.png[`git fetch` 更新你的远程仓库引用。]
44
44
45
- 为了演示有多个远程仓库与远程分支的情况,我们假定你有一个内部 Git 服务器,仅服务于你的某个 sprint 团队。
45
+ 为了演示有多个远程仓库与远程分支的情况,我们假定你有另一个内部 Git 服务器,仅服务于你的某个 sprint 团队。
46
46
这个服务器位于 `git.team1.ourcompany.com`。
47
47
你可以运行 `git remote add` 命令添加一个新的远程仓库引用到当前的项目,这个命令我们会在 <<ch02-git-basics#ch02-git-basics>> 中详细说明。
48
48
将这个远程仓库命名为 `teamone`,将其作为完整 URL 的缩写。
@@ -51,7 +51,7 @@ image::images/remote-branches-3.png[`git fetch` 更新你的远程仓库引用
51
51
image::images/remote-branches-4.png[添加另一个远程仓库。]
52
52
53
53
现在,可以运行 `git fetch teamone` 来抓取远程仓库 `teamone` 有而本地没有的数据。
54
- 因为那台服务器上现有的数据是 `origin` 服务器上的一个子集,所以 Git 抓取不到新数据但是会设置远程跟踪分支 `teamone/master` 指向 `teamone` 的 `master` 分支。
54
+ 因为那台服务器上现有的数据是 `origin` 服务器上的一个子集,所以 Git 并不会抓取数据而是会设置远程跟踪分支 `teamone/master` 指向 `teamone` 的 `master` 分支。
55
55
56
56
.远程跟踪分支 `teamone/master`
57
57
image::images/remote-branches-5.png[远程跟踪分支 `teamone/master`。]
You can’t perform that action at this time.
0 commit comments