1 <?xml version="1.0" encoding="UTF-8"?>
\r
2 <!DOCTYPE sect2 PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN" "http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd">
\r
4 <sect2 lang="en" id="git-ls-remote(1)">
\r
5 <title>git-ls-remote(1)</title>
\r
7 <primary>git-ls-remote(1)</primary>
\r
9 <simplesect id="git-ls-remote(1)__name">
\r
11 <simpara>git-ls-remote - List references in a remote repository</simpara>
\r
13 <simplesect id="git-ls-remote(1)__synopsis">
\r
14 <title>SYNOPSIS</title>
\r
16 <literallayout><emphasis>git ls-remote</emphasis> [--heads] [--tags] [--refs] [--upload-pack=<exec>]
\r
17 [-q | --quiet] [--exit-code] [--get-url]
\r
18 [--symref] [<repository> [<refs>…]]</literallayout>
\r
21 <simplesect id="git-ls-remote(1)__description">
\r
22 <title>DESCRIPTION</title>
\r
23 <simpara>Displays references available in a remote repository along with the associated
\r
24 commit IDs.</simpara>
\r
26 <simplesect id="git-ls-remote(1)__options">
\r
27 <title>OPTIONS</title>
\r
44 Limit to only refs/heads and refs/tags, respectively.
\r
45 These options are <emphasis>not</emphasis> mutually exclusive; when given
\r
46 both, references stored in refs/heads and refs/tags are
\r
57 Do not show peeled tags or pseudorefs like HEAD in the output.
\r
70 Do not print remote URL to stderr.
\r
76 --upload-pack=<exec>
\r
80 Specify the full path of <emphasis>git-upload-pack</emphasis> on the remote
\r
81 host. This allows listing references from repositories accessed via
\r
82 SSH and where the SSH daemon does not use the PATH configured by the
\r
93 Exit with status "2" when no matching refs are found in the remote
\r
94 repository. Usually the command exits with status "0" to indicate
\r
95 it successfully talked with the remote repository, whether it
\r
96 found any matching refs.
\r
106 Expand the URL of the given remote repository taking into account any
\r
107 "url.<base>.insteadOf" config setting (See <xref linkend="git-config(1)" />) and
\r
108 exit without talking to the remote.
\r
118 In addition to the object pointed by it, show the underlying
\r
119 ref pointed by it when showing a symbolic ref. Currently,
\r
120 upload-pack only shows the symref HEAD, so it will be the only
\r
121 one shown by ls-remote.
\r
131 The "remote" repository to query. This parameter can be
\r
132 either a URL or the name of a remote (see the GIT URLS and
\r
133 REMOTES sections of <xref linkend="git-fetch(1)" />).
\r
139 <refs>…
\r
143 When unspecified, all references, after filtering done
\r
144 with --heads and --tags, are shown. When <refs>… are
\r
145 specified, only references matching the given patterns
\r
152 <simplesect id="git-ls-remote(1)__examples">
\r
153 <title>EXAMPLES</title>
\r
154 <literallayout class="monospaced">$ git ls-remote --tags ./.
\r
155 d6602ec5194c87b0fc87103ca4d67251c76f233a refs/tags/v0.99
\r
156 f25a265a342aed6041ab0cc484224d9ca54b6f41 refs/tags/v0.99.1
\r
157 7ceca275d047c90c0c7d5afb13ab97efdf51bd6e refs/tags/v0.99.3
\r
158 c5db5456ae3b0873fc659c19fafdde22313cc441 refs/tags/v0.99.2
\r
159 0918385dbd9656cab0d1d81ba7453d49bbc16250 refs/tags/junio-gpg-pub
\r
160 $ git ls-remote http://www.kernel.org/pub/scm/git/git.git master pu rc
\r
161 5fe978a5381f1fbad26a80e682ddd2a401966740 refs/heads/master
\r
162 c781a84b5204fb294c9ccc79f8b3baceeb32c061 refs/heads/pu
\r
163 $ git remote add korg http://www.kernel.org/pub/scm/git/git.git
\r
164 $ git ls-remote --tags korg v\*
\r
165 d6602ec5194c87b0fc87103ca4d67251c76f233a refs/tags/v0.99
\r
166 f25a265a342aed6041ab0cc484224d9ca54b6f41 refs/tags/v0.99.1
\r
167 c5db5456ae3b0873fc659c19fafdde22313cc441 refs/tags/v0.99.2
\r
168 7ceca275d047c90c0c7d5afb13ab97efdf51bd6e refs/tags/v0.99.3</literallayout>
\r
170 <simplesect id="git-ls-remote(1)__git">
\r
172 <simpara>Part of the <xref linkend="git(1)" /> suite</simpara>
\r