[PATCH] Documentation: describe short-hand used in fetch/pull.
[git/git.git] / Documentation / pull-fetch-param.txt
CommitLineData
0c04094b
JH
1<repository>::
2 The "remote" repository to pull from. One of the
3 following notations can be used to name the repository
4 to pull from:
5
6 Rsync URL
7 rsync://remote.machine/path/to/repo.git/
8
9 HTTP(s) URL
10 http://remote.machine/path/to/repo.git/
11
12 GIT URL
13 git://remote.machine/path/to/repo.git/
14 remote.machine:/path/to/repo.git/
15
16 Local directory
17 /path/to/repo.git/
18
19 In addition to that, as a short-hand, the name of a file
20 in $GIT_DIR/branches directory can be specified; the
21 named file should contain a single line, a URL in one of
22 the above formats, optionally followed by a hash '#' and
23 the name of remote head.
24
25<head>::
26 The remote head name to fetch from. That is, make the
27 objects reachable from the commit recorded in
28 $GIT_DIR/refs/heads/<head> in the remote repository
29 available locally.
30
31tag <tag>::
32 The remote head tag to fetch from. That is, make the
33 objects reachable from the commit recorded in
34 $GIT_DIR/refs/tags/<tag> in the remote repository
35 available locally.
36