We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9e5df43 commit 92830bbCopy full SHA for 92830bb
book/10-git-internals/sections/refspec.asc
@@ -80,14 +80,14 @@ From [email protected]:schacon/simplegit
80
fetch = +refs/heads/experiment:refs/remotes/origin/experiment
81
----
82
83
-我们不能在模式中使用部分通配符,所以像下面这样的引用规范是不合法的:
+自 Git 2.6.0 起可以在模式中使用部分通配符以匹配多个分支,所以这样是可以工作的:
84
85
[source,ini]
86
87
fetch = +refs/heads/qa*:refs/remotes/origin/qa*
88
89
90
-但我们可以使用命名空间(或目录)来达到类似目的。
+更棒的是,我们可以使用命名空间(或目录)来实现相同的目标,并且更具结构性。
91
假设你有一个 QA 团队,他们推送了一系列分支,同时你只想要获取 `master` 和
92
QA 团队的所有分支而不关心其他任何分支,那么可以使用如下配置:
93
0 commit comments