Skip to content

Commit b9fd1f3

Browse files
guaoonetworm
authored andcommitted
修正有歧义的句子
原文是: `If you run a git push and your current branch is tracking origin/master, the commits listed by git log origin/master..HEAD are the commits that will be transferred to the server.`,意思是运行 `git push` 命令时推送到远程服务器的提交,和运行 `git log origin/master..HEAD` 命令输出的提交是相同的。 而原译文中是: `如果你执行 git push 并且你的当前分支正在跟踪 origin/master,由 git log origin/master..HEAD 所输出的提交会被传输到远端服务器。`,这句意思是运行 `git log origin/master..HEAD` 所输出的提交会被传输到远端服务器。 所以原译文该句子有极大歧义,会误导读者。
1 parent 31be5a3 commit b9fd1f3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

book/07-git-tools/sections/revision-selection.asc

+1-1
Original file line numberDiff line numberDiff line change
@@ -309,7 +309,7 @@ $ git log origin/master..HEAD
309309
----
310310

311311
这个命令会输出在你当前分支中而不在远程 `origin` 中的提交。
312-
如果你执行 `git push` 并且你的当前分支正在跟踪 `origin/master`,由 `git log origin/master..HEAD` 所输出的提交会被传输到远端服务器
312+
如果你执行 `git push` 并且你的当前分支正在跟踪 `origin/master`,由 `git log origin/master..HEAD` 所输出的提交就是会被传输到远端服务器的提交
313313
如果你留空了其中的一边, Git 会默认为 HEAD。
314314
例如, `git log origin/master..` 将会输出与之前例子相同的结果 —— Git 使用 HEAD 来代替留空的一边。
315315

0 commit comments

Comments
 (0)