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