1 <?xml version="1.0" encoding="UTF-8"?>
\r
2 <!DOCTYPE article PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN" "http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd">
\r
4 <article lang="en" id="git-ls-remote(1)">
\r
6 <title>git-ls-remote(1)</title>
\r
8 <primary>git-ls-remote(1)</primary>
\r
11 <simplesect id="_name">
\r
13 <simpara>git-ls-remote - List references in a remote repository</simpara>
\r
15 <simplesect id="_synopsis">
\r
16 <title>SYNOPSIS</title>
\r
18 <literallayout><emphasis>git ls-remote</emphasis> [--heads] [--tags] [-u <exec> | --upload-pack <exec>]
\r
19 [--exit-code] <repository> [<refs>…]</literallayout>
\r
22 <simplesect id="_description">
\r
23 <title>DESCRIPTION</title>
\r
24 <simpara>Displays references available in a remote repository along with the associated
\r
25 commit IDs.</simpara>
\r
27 <simplesect id="_options">
\r
28 <title>OPTIONS</title>
\r
45 Limit to only refs/heads and refs/tags, respectively.
\r
46 These options are <emphasis>not</emphasis> mutually exclusive; when given
\r
47 both, references stored in refs/heads and refs/tags are
\r
57 --upload-pack=<exec>
\r
61 Specify the full path of <emphasis>git-upload-pack</emphasis> on the remote
\r
62 host. This allows listing references from repositories accessed via
\r
63 SSH and where the SSH daemon does not use the PATH configured by the
\r
74 Exit with status "2" when no matching refs are found in the remote
\r
75 repository. Usually the command exits with status "0" to indicate
\r
76 it successfully talked with the remote repository, whether it
\r
77 found any matching refs.
\r
87 Location of the repository. The shorthand defined in
\r
88 $GIT_DIR/branches/ can be used. Use "." (dot) to list references in
\r
89 the local repository.
\r
99 When unspecified, all references, after filtering done
\r
100 with --heads and --tags, are shown. When <refs>… are
\r
101 specified, only references matching the given patterns
\r
108 <simplesect id="_examples">
\r
109 <title>EXAMPLES</title>
\r
110 <literallayout class="monospaced">$ git ls-remote --tags ./.
\r
111 d6602ec5194c87b0fc87103ca4d67251c76f233a refs/tags/v0.99
\r
112 f25a265a342aed6041ab0cc484224d9ca54b6f41 refs/tags/v0.99.1
\r
113 7ceca275d047c90c0c7d5afb13ab97efdf51bd6e refs/tags/v0.99.3
\r
114 c5db5456ae3b0873fc659c19fafdde22313cc441 refs/tags/v0.99.2
\r
115 0918385dbd9656cab0d1d81ba7453d49bbc16250 refs/tags/junio-gpg-pub
\r
116 $ git ls-remote http://www.kernel.org/pub/scm/git/git.git master pu rc
\r
117 5fe978a5381f1fbad26a80e682ddd2a401966740 refs/heads/master
\r
118 c781a84b5204fb294c9ccc79f8b3baceeb32c061 refs/heads/pu
\r
119 b1d096f2926c4e37c9c0b6a7bf2119bedaa277cb refs/heads/rc
\r
120 $ echo http://www.kernel.org/pub/scm/git/git.git >.git/branches/public
\r
121 $ git ls-remote --tags public v\*
\r
122 d6602ec5194c87b0fc87103ca4d67251c76f233a refs/tags/v0.99
\r
123 f25a265a342aed6041ab0cc484224d9ca54b6f41 refs/tags/v0.99.1
\r
124 c5db5456ae3b0873fc659c19fafdde22313cc441 refs/tags/v0.99.2
\r
125 7ceca275d047c90c0c7d5afb13ab97efdf51bd6e refs/tags/v0.99.3</literallayout>
\r
127 <simplesect id="_git">
\r
129 <simpara>Part of the <xref linkend="git(1)" /> suite</simpara>
\r