Skip to content

修正几处不妥翻译: 如 also => 也许,your 误译为 你(根据上下文那处your是指双方) #354

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 2 commits into from

Conversation

shukebeta
Copy link
Contributor

No description provided.

@networm
Copy link
Member

networm commented May 8, 2018

请对照英文翻译

Copy link
Member

@networm networm left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

请仔细检查并回复

@@ -3,7 +3,7 @@

(((branches, remote)))(((references, remote)))
远程引用是对远程仓库的引用(指针),包括分支、标签等等。
你可以通过 `git ls-remote (remote)` 来显式地获得远程引用的完整列表,或者通过 `git remote show (remote)` 获得远程分支的更多信息。
你可以通过 `git ls-remote [remote]` 来显式地获得远程引用的完整列表,或者通过 `git remote show [remote]` 获得远程分支的更多信息。
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

英文版中这里改为中括号了吗?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

是的。

如果你在本地的 `master` 分支做了一些工作,然而在同一时间,其他人推送提交到 `git.ourcompany.com` 并更新了它的 `master` 分支,那么你的提交历史将向不同的方向前进
也许,只要你不与 origin 服务器连接,你的 `origin/master` 指针就不会移动。
如果你在本地的 `master` 分支做了一些工作,在同一段时间内有其他人推送提交到 `git.ourcompany.com` 并且更新了它的 `master` 分支,这就是说你们的提交历史已走向不同的方向
即便这样,只要你保持不与 origin 服务器连接(并同步数据),你的 `origin/master` 指针就不会移动。
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

这里用同步数据并不妥吧?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

pull 拉取
fetch 获取
是否考虑使用相关用语?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

有道理。fetch 只获取不合并, pull则获取并合并,比较而言,“拉取”是更好的用词。


.本地与远程的工作可以分叉
image::images/remote-branches-2.png[本地与远程的工作可以分叉。]

如果要同步你的工作,运行 `git fetch origin` 命令。
这个命令查找 ``origin'' 是哪一个服务器(在本例中,它是 `git.ourcompany.com`),从中抓取本地没有的数据,并且更新本地数据库,移动 `origin/master` 指针指向新的、更新后的位置。
如果要同步数据,运行 `git fetch origin` 命令。
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

同步数据?英文原文是 work,所以这里才会翻译成工作。如果要改为数据请在 TRANSLATION_NOTES 中修改对应词的翻译,然后统一处理。

如果要同步你的工作,运行 `git fetch origin` 命令。
这个命令查找 ``origin'' 是哪一个服务器(在本例中,它是 `git.ourcompany.com`),从中抓取本地没有的数据,并且更新本地数据库,移动 `origin/master` 指针指向新的、更新后的位置
如果要同步数据,运行 `git fetch origin` 命令。
这个命令查找 ``origin'' 是哪一个服务器(在本例中,它是 `git.ourcompany.com`),从中抓取本地没有的数据,并且更新本地数据库,移动 `origin/master` 指针到同步之后的新位置
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

这里不建议用同步,同步一般是指双向的,而 fetch 命令只是单向地更新而已,所以我建议使用 指针到更新之后的新位置。


.`git fetch` 更新你的远程仓库引用
image::images/remote-branches-3.png[`git fetch` 更新你的远程仓库引用。]

为了演示有多个远程仓库与远程分支的情况,我们假定你有另一个内部 Git 服务器,仅用于你的 sprint 小组的开发工作
为了演示有多个远程仓库与远程分支的情况,我们假定你有一个内部 Git 服务器,仅服务于你的某个 sprint 团队
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

这里的 另 不可以删除,因为示例是演示两个远程仓库的协作。


.添加另一个远程仓库
image::images/remote-branches-4.png[添加另一个远程仓库。]

现在,可以运行 `git fetch teamone` 来抓取远程仓库 `teamone` 有而本地没有的数据。
因为那台服务器上现有的数据是 `origin` 服务器上的一个子集,所以 Git 并不会抓取数据而是会设置远程跟踪分支 `teamone/master` 指向 `teamone` 的 `master` 分支。
因为那台服务器上现有的数据是 `origin` 服务器上的一个子集,所以 Git 抓取不到新数据但是会设置远程跟踪分支 `teamone/master` 指向 `teamone` 的 `master` 分支。
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

这里原来的翻译是对的,具体你可以在本地尝试操作一下。也可以再看看英文版的原文对照一下。

@networm
Copy link
Member

networm commented Apr 14, 2019

请更新译文后再留言进行合并

@networm
Copy link
Member

networm commented Jan 31, 2020

作者超过一年半未处理,关闭此 PR。

@networm networm closed this Jan 31, 2020
OlingCat added a commit to OlingCat/progit2-zh that referenced this pull request Jan 31, 2020
networm added a commit that referenced this pull request Jan 31, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants