@@ -60,11 +60,11 @@ the remote repository.
60
60
+
61
61
With `-t <branch>` option, instead of the default glob
62
62
refspec for the remote to track all branches under
63
- `$GIT_DIR/remotes/<name>/`, a refspec to track only `<branch>`
63
+ `$GIT_DIR/refs/ remotes/<name>/`, a refspec to track only `<branch>`
64
64
is created. You can give more than one `-t <branch>` to track
65
65
multiple branches without grabbing all branches.
66
66
+
67
- With `-m <master>` option, `$GIT_DIR/remotes/<name>/HEAD` is set
67
+ With `-m <master>` option, `$GIT_DIR/refs/ remotes/<name>/HEAD` is set
68
68
up to point at remote's `<master>` branch. See also the set-head command.
69
69
+
70
70
When a fetch mirror is created with `\--mirror=fetch`, the refs will not
@@ -92,23 +92,23 @@ configuration settings for the remote are removed.
92
92
93
93
'set-head'::
94
94
95
- Sets or deletes the default branch (`$GIT_DIR/remotes/<name>/HEAD`) for
95
+ Sets or deletes the default branch (`$GIT_DIR/refs/ remotes/<name>/HEAD`) for
96
96
the named remote. Having a default branch for a remote is not required,
97
97
but allows the name of the remote to be specified in lieu of a specific
98
98
branch. For example, if the default branch for `origin` is set to
99
99
`master`, then `origin` may be specified wherever you would normally
100
100
specify `origin/master`.
101
101
+
102
- With `-d`, `$GIT_DIR/remotes/<name>/HEAD` is deleted.
102
+ With `-d`, `$GIT_DIR/refs/ remotes/<name>/HEAD` is deleted.
103
103
+
104
104
With `-a`, the remote is queried to determine its `HEAD`, then
105
- `$GIT_DIR/remotes/<name>/HEAD` is set to the same branch. e.g., if the remote
105
+ `$GIT_DIR/refs/ remotes/<name>/HEAD` is set to the same branch. e.g., if the remote
106
106
`HEAD` is pointed at `next`, "`git remote set-head origin -a`" will set
107
107
`$GIT_DIR/refs/remotes/origin/HEAD` to `refs/remotes/origin/next`. This will
108
108
only work if `refs/remotes/origin/next` already exists; if not it must be
109
109
fetched first.
110
110
+
111
- Use `<branch>` to set `$GIT_DIR/remotes/<name>/HEAD` explicitly. e.g., "git
111
+ Use `<branch>` to set `$GIT_DIR/refs/ remotes/<name>/HEAD` explicitly. e.g., "git
112
112
remote set-head origin master" will set `$GIT_DIR/refs/remotes/origin/HEAD` to
113
113
`refs/remotes/origin/master`. This will only work if
114
114
`refs/remotes/origin/master` already exists; if not it must be fetched first.
0 commit comments