@@ -2313,13 +2313,10 @@ receive.denyNonFastForwards::
23132313 set when initializing a shared repository.
23142314
23152315receive.hideRefs::
2316- String(s) `receive-pack` uses to decide which refs to omit
2317- from its initial advertisement. Use more than one
2318- definitions to specify multiple prefix strings. A ref that
2319- are under the hierarchies listed on the value of this
2320- variable is excluded, and is hidden when responding to `git
2321- push`, and an attempt to update or delete a hidden ref by
2322- `git push` is rejected.
2316+ This variable is the same as `transfer.hideRefs`, but applies
2317+ only to `receive-pack` (and so affects pushes, but not fetches).
2318+ An attempt to update or delete a hidden ref by `git push` is
2319+ rejected.
23232320
23242321receive.updateServerInfo::
23252322 If set to true, git-receive-pack will run git-update-server-info
@@ -2607,9 +2604,18 @@ transfer.fsckObjects::
26072604 Defaults to false.
26082605
26092606transfer.hideRefs::
2610- This variable can be used to set both `receive.hideRefs`
2611- and `uploadpack.hideRefs` at the same time to the same
2612- values. See entries for these other variables.
2607+ String(s) `receive-pack` and `upload-pack` use to decide which
2608+ refs to omit from their initial advertisements. Use more than
2609+ one definition to specify multiple prefix strings. A ref that is
2610+ under the hierarchies listed in the value of this variable is
2611+ excluded, and is hidden when responding to `git push` or `git
2612+ fetch`. See `receive.hideRefs` and `uploadpack.hideRefs` for
2613+ program-specific versions of this config.
2614+ +
2615+ You may also include a `!` in front of the ref name to negate the entry,
2616+ explicitly exposing it, even if an earlier entry marked it as hidden.
2617+ If you have multiple hideRefs values, later entries override earlier ones
2618+ (and entries in more-specific config files override less-specific ones).
26132619
26142620transfer.unpackLimit::
26152621 When `fetch.unpackLimit` or `receive.unpackLimit` are
@@ -2624,13 +2630,10 @@ uploadarchive.allowUnreachable::
26242630 `false`.
26252631
26262632uploadpack.hideRefs::
2627- String(s) `upload-pack` uses to decide which refs to omit
2628- from its initial advertisement. Use more than one
2629- definitions to specify multiple prefix strings. A ref that
2630- are under the hierarchies listed on the value of this
2631- variable is excluded, and is hidden from `git ls-remote`,
2632- `git fetch`, etc. An attempt to fetch a hidden ref by `git
2633- fetch` will fail. See also `uploadpack.allowTipSHA1InWant`.
2633+ This variable is the same as `transfer.hideRefs`, but applies
2634+ only to `upload-pack` (and so affects only fetches, not pushes).
2635+ An attempt to fetch a hidden ref by `git fetch` will fail. See
2636+ also `uploadpack.allowTipSHA1InWant`.
26342637
26352638uploadpack.allowTipSHA1InWant::
26362639 When `uploadpack.hideRefs` is in effect, allow `upload-pack`
0 commit comments