ls-remote: document --quiet option
[git/git.git] / Documentation / git-ls-remote.txt
CommitLineData
215a7ad1
JH
1git-ls-remote(1)
2================
972b6fe7
JH
3
4NAME
5----
0dde6899 6git-ls-remote - List references in a remote repository
972b6fe7
JH
7
8
9SYNOPSIS
10--------
0dde6899 11[verse]
29bc480a 12'git ls-remote' [--heads] [--tags] [--upload-pack=<exec>]
54813bdd 13 [-q | --quiet] [--exit-code] <repository> [<refs>...]
972b6fe7
JH
14
15DESCRIPTION
16-----------
0dde6899
JF
17Displays references available in a remote repository along with the associated
18commit IDs.
972b6fe7
JH
19
20
21OPTIONS
22-------
3240240f
SB
23-h::
24--heads::
25-t::
26--tags::
972b6fe7
JH
27 Limit to only refs/heads and refs/tags, respectively.
28 These options are _not_ mutually exclusive; when given
29 both, references stored in refs/heads and refs/tags are
30 displayed.
31
54813bdd
TG
32-q::
33--quiet::
34 Do not print remote URL to stderr.
35
3240240f 36--upload-pack=<exec>::
ba020ef5 37 Specify the full path of 'git-upload-pack' on the remote
0dde6899 38 host. This allows listing references from repositories accessed via
23bfbb81 39 SSH and where the SSH daemon does not use the PATH configured by the
f0294272 40 user.
0dde6899 41
a8724773
MS
42--exit-code::
43 Exit with status "2" when no matching refs are found in the remote
44 repository. Usually the command exits with status "0" to indicate
45 it successfully talked with the remote repository, whether it
46 found any matching refs.
47
2303cad2
SN
48--get-url::
49 Expand the URL of the given remote repository taking into account any
50 "url.<base>.insteadOf" config setting (See linkgit:git-config[1]) and
51 exit without talking to the remote.
52
972b6fe7 53<repository>::
88e36141
RR
54 The "remote" repository to query. This parameter can be
55 either a URL or the name of a remote (see the GIT URLS and
56 REMOTES sections of linkgit:git-fetch[1]).
972b6fe7
JH
57
58<refs>...::
59 When unspecified, all references, after filtering done
60 with --heads and --tags, are shown. When <refs>... are
61 specified, only references matching the given patterns
62 are displayed.
63
64EXAMPLES
65--------
66
67 $ git ls-remote --tags ./.
68 d6602ec5194c87b0fc87103ca4d67251c76f233a refs/tags/v0.99
69 f25a265a342aed6041ab0cc484224d9ca54b6f41 refs/tags/v0.99.1
70 7ceca275d047c90c0c7d5afb13ab97efdf51bd6e refs/tags/v0.99.3
71 c5db5456ae3b0873fc659c19fafdde22313cc441 refs/tags/v0.99.2
72 0918385dbd9656cab0d1d81ba7453d49bbc16250 refs/tags/junio-gpg-pub
73 $ git ls-remote http://www.kernel.org/pub/scm/git/git.git master pu rc
74 5fe978a5381f1fbad26a80e682ddd2a401966740 refs/heads/master
75 c781a84b5204fb294c9ccc79f8b3baceeb32c061 refs/heads/pu
f0779aef
RR
76 $ git remote add korg http://www.kernel.org/pub/scm/git/git.git
77 $ git ls-remote --tags korg v\*
972b6fe7
JH
78 d6602ec5194c87b0fc87103ca4d67251c76f233a refs/tags/v0.99
79 f25a265a342aed6041ab0cc484224d9ca54b6f41 refs/tags/v0.99.1
80 c5db5456ae3b0873fc659c19fafdde22313cc441 refs/tags/v0.99.2
81 7ceca275d047c90c0c7d5afb13ab97efdf51bd6e refs/tags/v0.99.3
82
972b6fe7
JH
83GIT
84---
9e1f0a85 85Part of the linkgit:git[1] suite