updated git doc
[TortoiseGit.git] / doc / source / en / TortoiseGit / git_doc / git-ls-remote.xml
blobe2736b4a1a3e6c4d75f09203dab1a428b61227d8
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
3 \r
4 <article lang="en" id="git-ls-remote(1)">\r
5 <articleinfo>\r
6     <title>git-ls-remote(1)</title>\r
7 <indexterm>\r
8 <primary>git-ls-remote(1)</primary>\r
9 </indexterm>\r
10 </articleinfo>\r
11 <simplesect id="_name">\r
12 <title>NAME</title>\r
13 <simpara>git-ls-remote - List references in a remote repository</simpara>\r
14 </simplesect>\r
15 <simplesect id="_synopsis">\r
16 <title>SYNOPSIS</title>\r
17 <blockquote>\r
18 <literallayout><emphasis>git ls-remote</emphasis> [--heads] [--tags]  [-u &lt;exec&gt; | --upload-pack &lt;exec&gt;]\r
19               [--exit-code] &lt;repository&gt; [&lt;refs&gt;&#8230;]</literallayout>\r
20 </blockquote>\r
21 </simplesect>\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
26 </simplesect>\r
27 <simplesect id="_options">\r
28 <title>OPTIONS</title>\r
29 <variablelist>\r
30 <varlistentry>\r
31 <term>\r
32 -h\r
33 </term>\r
34 <term>\r
35 --heads\r
36 </term>\r
37 <term>\r
38 -t\r
39 </term>\r
40 <term>\r
41 --tags\r
42 </term>\r
43 <listitem>\r
44 <simpara>\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
48         displayed.\r
49 </simpara>\r
50 </listitem>\r
51 </varlistentry>\r
52 <varlistentry>\r
53 <term>\r
54 -u &lt;exec&gt;\r
55 </term>\r
56 <term>\r
57 --upload-pack=&lt;exec&gt;\r
58 </term>\r
59 <listitem>\r
60 <simpara>\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
64         user.\r
65 </simpara>\r
66 </listitem>\r
67 </varlistentry>\r
68 <varlistentry>\r
69 <term>\r
70 --exit-code\r
71 </term>\r
72 <listitem>\r
73 <simpara>\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
78 </simpara>\r
79 </listitem>\r
80 </varlistentry>\r
81 <varlistentry>\r
82 <term>\r
83 &lt;repository&gt;\r
84 </term>\r
85 <listitem>\r
86 <simpara>\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
90 </simpara>\r
91 </listitem>\r
92 </varlistentry>\r
93 <varlistentry>\r
94 <term>\r
95 &lt;refs&gt;&#8230;\r
96 </term>\r
97 <listitem>\r
98 <simpara>\r
99         When unspecified, all references, after filtering done\r
100         with --heads and --tags, are shown.  When &lt;refs&gt;&#8230; are\r
101         specified, only references matching the given patterns\r
102         are displayed.\r
103 </simpara>\r
104 </listitem>\r
105 </varlistentry>\r
106 </variablelist>\r
107 </simplesect>\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 &gt;.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
126 </simplesect>\r
127 <simplesect id="_git">\r
128 <title>GIT</title>\r
129 <simpara>Part of the <xref linkend="git(1)" /> suite</simpara>\r
130 </simplesect>\r
131 </article>\r