Skip to content

Commit 159543e

Browse files
Philip Oakleyjrn
authored andcommitted
remote doc: document long forms of set-head options
"git remote set-head" has always supported --add and --delete as synonyms for the -a and -d option but forgot to document them. Signed-off-by: Philip Oakley <[email protected]> Signed-off-by: Jonathan Nieder <[email protected]>
1 parent 02a110a commit 159543e

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

Documentation/git-remote.txt

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ SYNOPSIS
1313
'git remote add' [-t <branch>] [-m <master>] [-f] [--[no-]tags] [--mirror=<fetch|push>] <name> <url>
1414
'git remote rename' <old> <new>
1515
'git remote remove' <name>
16-
'git remote set-head' <name> (-a | -d | <branch>)
16+
'git remote set-head' <name> (-a | --auto | -d | --delete | <branch>)
1717
'git remote set-branches' [--add] <name> <branch>...
1818
'git remote set-url' [--push] <name> <newurl> [<oldurl>]
1919
'git remote set-url --add' [--push] <name> <newurl>
@@ -101,9 +101,9 @@ branch. For example, if the default branch for `origin` is set to
101101
`master`, then `origin` may be specified wherever you would normally
102102
specify `origin/master`.
103103
+
104-
With `-d`, the symbolic ref `refs/remotes/<name>/HEAD` is deleted.
104+
With `-d` or `--delete`, the symbolic ref `refs/remotes/<name>/HEAD` is deleted.
105105
+
106-
With `-a`, the remote is queried to determine its `HEAD`, then the
106+
With `-a` or `--auto`, the remote is queried to determine its `HEAD`, then the
107107
symbolic-ref `refs/remotes/<name>/HEAD` is set to the same branch. e.g., if the remote
108108
`HEAD` is pointed at `next`, "`git remote set-head origin -a`" will set
109109
the symbolic-ref `refs/remotes/origin/HEAD` to `refs/remotes/origin/next`. This will

0 commit comments

Comments
 (0)