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] [-u <exec> | --upload-pack <exec>]
\r
17 [--exit-code] <repository> [<refs>…]</literallayout>
\r
20 <simplesect id="git-ls-remote(1)__description">
\r
21 <title>DESCRIPTION</title>
\r
22 <simpara>Displays references available in a remote repository along with the associated
\r
23 commit IDs.</simpara>
\r
25 <simplesect id="git-ls-remote(1)__options">
\r
26 <title>OPTIONS</title>
\r
43 Limit to only refs/heads and refs/tags, respectively.
\r
44 These options are <emphasis>not</emphasis> mutually exclusive; when given
\r
45 both, references stored in refs/heads and refs/tags are
\r
55 --upload-pack=<exec>
\r
59 Specify the full path of <emphasis>git-upload-pack</emphasis> on the remote
\r
60 host. This allows listing references from repositories accessed via
\r
61 SSH and where the SSH daemon does not use the PATH configured by the
\r
72 Exit with status "2" when no matching refs are found in the remote
\r
73 repository. Usually the command exits with status "0" to indicate
\r
74 it successfully talked with the remote repository, whether it
\r
75 found any matching refs.
\r
85 Expand the URL of the given remote repository taking into account any
\r
86 "url.<base>.insteadOf" config setting (See <xref linkend="git-config(1)" />) and
\r
87 exit without talking to the remote.
\r
97 Location of the repository. The shorthand defined in
\r
98 $GIT_DIR/branches/ can be used. Use "." (dot) to list references in
\r
99 the local repository.
\r
105 <refs>…
\r
109 When unspecified, all references, after filtering done
\r
110 with --heads and --tags, are shown. When <refs>… are
\r
111 specified, only references matching the given patterns
\r
118 <simplesect id="git-ls-remote(1)__examples">
\r
119 <title>EXAMPLES</title>
\r
120 <literallayout class="monospaced">$ git ls-remote --tags ./.
\r
121 d6602ec5194c87b0fc87103ca4d67251c76f233a refs/tags/v0.99
\r
122 f25a265a342aed6041ab0cc484224d9ca54b6f41 refs/tags/v0.99.1
\r
123 7ceca275d047c90c0c7d5afb13ab97efdf51bd6e refs/tags/v0.99.3
\r
124 c5db5456ae3b0873fc659c19fafdde22313cc441 refs/tags/v0.99.2
\r
125 0918385dbd9656cab0d1d81ba7453d49bbc16250 refs/tags/junio-gpg-pub
\r
126 $ git ls-remote http://www.kernel.org/pub/scm/git/git.git master pu rc
\r
127 5fe978a5381f1fbad26a80e682ddd2a401966740 refs/heads/master
\r
128 c781a84b5204fb294c9ccc79f8b3baceeb32c061 refs/heads/pu
\r
129 b1d096f2926c4e37c9c0b6a7bf2119bedaa277cb refs/heads/rc
\r
130 $ echo http://www.kernel.org/pub/scm/git/git.git >.git/branches/public
\r
131 $ git ls-remote --tags public v\*
\r
132 d6602ec5194c87b0fc87103ca4d67251c76f233a refs/tags/v0.99
\r
133 f25a265a342aed6041ab0cc484224d9ca54b6f41 refs/tags/v0.99.1
\r
134 c5db5456ae3b0873fc659c19fafdde22313cc441 refs/tags/v0.99.2
\r
135 7ceca275d047c90c0c7d5afb13ab97efdf51bd6e refs/tags/v0.99.3</literallayout>
\r
137 <simplesect id="git-ls-remote(1)__git">
\r
139 <simpara>Part of the <xref linkend="git(1)" /> suite</simpara>
\r