Skip to content

Commit 92830bb

Browse files
AlphaHinexnetworm
authored andcommitted
Update refspec.asc
1 parent 9e5df43 commit 92830bb

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

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

+2-2
Original file line numberDiff line numberDiff line change
@@ -80,14 +80,14 @@ From [email protected]:schacon/simplegit
8080
fetch = +refs/heads/experiment:refs/remotes/origin/experiment
8181
----
8282

83-
我们不能在模式中使用部分通配符,所以像下面这样的引用规范是不合法的
83+
自 Git 2.6.0 起可以在模式中使用部分通配符以匹配多个分支,所以这样是可以工作的
8484

8585
[source,ini]
8686
----
8787
fetch = +refs/heads/qa*:refs/remotes/origin/qa*
8888
----
8989

90-
但我们可以使用命名空间(或目录)来达到类似目的
90+
更棒的是,我们可以使用命名空间(或目录)来实现相同的目标,并且更具结构性
9191
假设你有一个 QA 团队,他们推送了一系列分支,同时你只想要获取 `master` 和
9292
QA 团队的所有分支而不关心其他任何分支,那么可以使用如下配置:
9393

0 commit comments

Comments
 (0)