-
Notifications
You must be signed in to change notification settings - Fork 359
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
9e5df43
commit 92830bb
Showing
1 changed file
with
2 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -80,14 +80,14 @@ From [email protected]:schacon/simplegit | |
fetch = +refs/heads/experiment:refs/remotes/origin/experiment | ||
---- | ||
|
||
我们不能在模式中使用部分通配符,所以像下面这样的引用规范是不合法的: | ||
自 Git 2.6.0 起可以在模式中使用部分通配符以匹配多个分支,所以这样是可以工作的: | ||
|
||
[source,ini] | ||
---- | ||
fetch = +refs/heads/qa*:refs/remotes/origin/qa* | ||
---- | ||
|
||
但我们可以使用命名空间(或目录)来达到类似目的。 | ||
更棒的是,我们可以使用命名空间(或目录)来实现相同的目标,并且更具结构性。 | ||
假设你有一个 QA 团队,他们推送了一系列分支,同时你只想要获取 `master` 和 | ||
QA 团队的所有分支而不关心其他任何分支,那么可以使用如下配置: | ||
|
||
|