File tree Expand file tree Collapse file tree 2 files changed +5
-5
lines changed Expand file tree Collapse file tree 2 files changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -13,7 +13,7 @@ SYNOPSIS
13
13
'git remote add' [-t <branch>] [-m <master>] [-f] [--[no-]tags] [--mirror=<fetch|push>] <name> <url>
14
14
'git remote rename' <old> <new>
15
15
'git remote remove' <name>
16
- 'git remote set-head' <name> (-a | -d | <branch>)
16
+ 'git remote set-head' <name> (-a | --auto | -d | --delete | <branch>)
17
17
'git remote set-branches' [--add] <name> <branch>...
18
18
'git remote set-url' [--push] <name> <newurl> [<oldurl>]
19
19
'git remote set-url --add' [--push] <name> <newurl>
@@ -101,9 +101,9 @@ branch. For example, if the default branch for `origin` is set to
101
101
`master`, then `origin` may be specified wherever you would normally
102
102
specify `origin/master`.
103
103
+
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.
105
105
+
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
107
107
symbolic-ref `refs/remotes/<name>/HEAD` is set to the same branch. e.g., if the remote
108
108
`HEAD` is pointed at `next`, "`git remote set-head origin -a`" will set
109
109
the symbolic-ref `refs/remotes/origin/HEAD` to `refs/remotes/origin/next`. This will
Original file line number Diff line number Diff line change @@ -12,7 +12,7 @@ static const char * const builtin_remote_usage[] = {
12
12
N_ ("git remote add [-t <branch>] [-m <master>] [-f] [--tags|--no-tags] [--mirror=<fetch|push>] <name> <url>" ),
13
13
N_ ("git remote rename <old> <new>" ),
14
14
N_ ("git remote remove <name>" ),
15
- N_ ("git remote set-head <name> (-a | -d | <branch>)" ),
15
+ N_ ("git remote set-head <name> (-a | --auto | - d | --delete | <branch>)" ),
16
16
N_ ("git remote [-v | --verbose] show [-n] <name>" ),
17
17
N_ ("git remote prune [-n | --dry-run] <name>" ),
18
18
N_ ("git remote [-v | --verbose] update [-p | --prune] [(<group> | <remote>)...]" ),
@@ -39,7 +39,7 @@ static const char * const builtin_remote_rm_usage[] = {
39
39
};
40
40
41
41
static const char * const builtin_remote_sethead_usage [] = {
42
- N_ ("git remote set-head <name> (-a | -d | <branch>)" ),
42
+ N_ ("git remote set-head <name> (-a | --auto | -d | --delete | <branch>)" ),
43
43
NULL
44
44
};
45
45
You can’t perform that action at this time.
0 commit comments