Skip to content

Commit

Permalink
config/remote.txt: improve wording for 'remote.<name>.followRemoteHEAD'
Browse files Browse the repository at this point in the history
Signed-off-by: Philippe Blain <[email protected]>
  • Loading branch information
phil-blain committed Feb 14, 2025
1 parent cc2e59c commit 140794b
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions Documentation/config/remote.txt
Original file line number Diff line number Diff line change
Expand Up @@ -110,12 +110,12 @@ the values inherited from a lower priority configuration files (e.g.
remote.<name>.followRemoteHEAD::
How linkgit:git-fetch[1] should handle updates to `remotes/<name>/HEAD`.
The default value is "create", which will create `remotes/<name>/HEAD`
if it exists on the remote, but not locally, but will not touch an
already existing local reference. Setting to "warn" will print
a message if the remote has a different value, than the local one and
if it exists on the remote, but not locally; this will not touch an
already existing local reference. Setting it to "warn" will print
a message if the remote has a different value than the local one;
in case there is no local reference, it behaves like "create".
A variant on "warn" is "warn-if-not-$branch", which behaves like
"warn", but if `HEAD` on the remote is `$branch` it will be silent.
Setting to "always" will silently update it to the value on the remote.
Finally, setting it to "never" will never change or create the local
reference.
Setting it to "always" will silently update `remotes/<name>/HEAD` to
the value on the remote. Finally, setting it to "never" will never
change or create the local reference.

0 comments on commit 140794b

Please sign in to comment.