1 <?xml version="1.0" encoding="UTF-8"?>
\r
2 <!DOCTYPE article PUBLIC "-//OASIS//DTD DocBook XML V4.2//EN" "http://www.oasis-open.org/docbook/xml/4.2/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 <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 Location of the repository. The shorthand defined in
\r
75 $GIT_DIR/branches/ can be used. Use "." (dot) to list references in
\r
76 the local repository.
\r
86 When unspecified, all references, after filtering done
\r
87 with --heads and --tags, are shown. When <refs>… are
\r
88 specified, only references matching the given patterns
\r
95 <simplesect id="_examples">
\r
96 <title>EXAMPLES</title>
\r
97 <literallayout class="monospaced">$ git ls-remote --tags ./.
\r
98 d6602ec5194c87b0fc87103ca4d67251c76f233a refs/tags/v0.99
\r
99 f25a265a342aed6041ab0cc484224d9ca54b6f41 refs/tags/v0.99.1
\r
100 7ceca275d047c90c0c7d5afb13ab97efdf51bd6e refs/tags/v0.99.3
\r
101 c5db5456ae3b0873fc659c19fafdde22313cc441 refs/tags/v0.99.2
\r
102 0918385dbd9656cab0d1d81ba7453d49bbc16250 refs/tags/junio-gpg-pub
\r
103 $ git ls-remote http://www.kernel.org/pub/scm/git/git.git master pu rc
\r
104 5fe978a5381f1fbad26a80e682ddd2a401966740 refs/heads/master
\r
105 c781a84b5204fb294c9ccc79f8b3baceeb32c061 refs/heads/pu
\r
106 b1d096f2926c4e37c9c0b6a7bf2119bedaa277cb refs/heads/rc
\r
107 $ echo http://www.kernel.org/pub/scm/git/git.git >.git/branches/public
\r
108 $ git ls-remote --tags public v\*
\r
109 d6602ec5194c87b0fc87103ca4d67251c76f233a refs/tags/v0.99
\r
110 f25a265a342aed6041ab0cc484224d9ca54b6f41 refs/tags/v0.99.1
\r
111 c5db5456ae3b0873fc659c19fafdde22313cc441 refs/tags/v0.99.2
\r
112 7ceca275d047c90c0c7d5afb13ab97efdf51bd6e refs/tags/v0.99.3</literallayout>
\r
114 <simplesect id="_author">
\r
115 <title>Author</title>
\r
116 <simpara>Written by Junio C Hamano <<ulink url="mailto:gitster@pobox.com">gitster@pobox.com</ulink>></simpara>
\r
118 <simplesect id="_git">
\r
120 <simpara>Part of the <xref linkend="git(1)"/> suite</simpara>
\r