Skip to content

Commit

Permalink
book: update zh
Browse files Browse the repository at this point in the history
Updated via the `update-book.yml` GitHub workflow.
  • Loading branch information
dscho committed Jul 16, 2024
1 parent b187879 commit fbc7a79
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -109,15 +109,15 @@ <h2 id="_refspec">引用规范</h2>
</div>
</div>
<div class="paragraph">
<p>我们不能在模式中使用部分通配符,所以像下面这样的引用规范是不合法的</p>
<p>自 Git 2.6.0 起可以在模式中使用部分通配符以匹配多个分支,所以这样是可以工作的</p>
</div>
<div class="listingblock">
<div class="content">
<pre class="highlight"><code class="language-ini" data-lang="ini">fetch = +refs/heads/qa*:refs/remotes/origin/qa*</code></pre>
</div>
</div>
<div class="paragraph">
<p>但我们可以使用命名空间(或目录)来达到类似目的
<p>更棒的是,我们可以使用命名空间(或目录)来实现相同的目标,并且更具结构性
假设你有一个 QA 团队,他们推送了一系列分支,同时你只想要获取 <code>master</code>
QA 团队的所有分支而不关心其他任何分支,那么可以使用如下配置:</p>
</div>
Expand Down
2 changes: 1 addition & 1 deletion external/book/content/book/zh/v2/_index.html
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
language_code: zh
front_page: true
repository_url: https://github.com/progit/progit2-zh
sha: 9e5df4369de3710dc368471b02dec9c7b453981a
sha: 92830bbb7db80af88a7d533b273e28b2a7ec242a
page_title: Git - Book
url: "/book/zh/v2.html"
aliases:
Expand Down
2 changes: 1 addition & 1 deletion external/book/sync/book-zh.sha
Original file line number Diff line number Diff line change
@@ -1 +1 @@
9e5df4369de3710dc368471b02dec9c7b453981a
92830bbb7db80af88a7d533b273e28b2a7ec242a

0 comments on commit fbc7a79

Please sign in to comment.