Skip to content

Commit f05549f

Browse files
committed
Fix the Monospace Issue
Backport the upstream fix (was progit/progit2@98aed4e ).
1 parent 918df82 commit f05549f

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

book/10-git-internals/sections/refspec.asc

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -61,11 +61,11 @@ From [email protected]:schacon/simplegit
6161
* [new branch] topic -> origin/topic
6262
----
6363

64-
在这个例子中,对 master 分支的拉取操作被拒绝,因为它不是一个可以快进的引用。
64+
在这个例子中,对 `master` 分支的拉取操作被拒绝,因为它不是一个可以快进的引用。
6565
我们可以通过在引用规格之前指定 `+` 号来覆盖该规则。
6666

6767
你也可以在配置文件中指定多个用于获取操作的引用规格。
68-
如果想在每次获取时都包括 master 和 experiment 分支,添加如下两行:
68+
如果想在每次获取时都包括 `master``experiment` 分支,添加如下两行:
6969

7070
[source,ini]
7171
----
@@ -83,7 +83,7 @@ fetch = +refs/heads/qa*:refs/remotes/origin/qa*
8383
----
8484

8585
但我们可以使用命名空间(或目录)来达到类似目的。
86-
假设你有一个 QA 团队,他们推送了一系列分支,同时你只想要获取 master 和 QA 团队的所有分支而不关心其他任何分支,那么可以使用如下配置:
86+
假设你有一个 QA 团队,他们推送了一系列分支,同时你只想要获取 `master` 和 QA 团队的所有分支而不关心其他任何分支,那么可以使用如下配置:
8787

8888
[source,ini]
8989
----
@@ -129,4 +129,4 @@ $ git push origin master:refs/heads/qa/master
129129
$ git push origin :topic
130130
----
131131

132-
因为引用规格(的格式)是 `<src>:<dst>`,所以上述命令把 `<src>` 留空,意味着把远程版本库的 topic 分支定义为空值,也就是删除它。
132+
因为引用规格(的格式)是 `<src>:<dst>`,所以上述命令把 `<src>` 留空,意味着把远程版本库的 `topic` 分支定义为空值,也就是删除它。

0 commit comments

Comments
 (0)