1GIT-LS-REMOTE(1)                  Git Manual                  GIT-LS-REMOTE(1)
2
3
4

NAME

6       git-ls-remote - List references in a remote repository
7

SYNOPSIS

9       git ls-remote [--heads] [--tags]  [-u <exec> | --upload-pack <exec>]
10                     <repository> <refs>...
11
12

DESCRIPTION

14       Displays references available in a remote repository along with the
15       associated commit IDs.
16

OPTIONS

18       -h, --heads, -t, --tags
19           Limit to only refs/heads and refs/tags, respectively. These options
20           are not mutually exclusive; when given both, references stored in
21           refs/heads and refs/tags are displayed.
22
23       -u <exec>, --upload-pack=<exec>
24           Specify the full path of git-upload-pack on the remote host. This
25           allows listing references from repositories accessed via SSH and
26           where the SSH daemon does not use the PATH configured by the user.
27
28       <repository>
29           Location of the repository. The shorthand defined in
30           $GIT_DIR/branches/ can be used. Use "." (dot) to list references in
31           the local repository.
32
33       <refs>...
34           When unspecified, all references, after filtering done with --heads
35           and --tags, are shown. When <refs>... are specified, only
36           references matching the given patterns are displayed.
37

EXAMPLES

39           $ git ls-remote --tags ./.
40           d6602ec5194c87b0fc87103ca4d67251c76f233a        refs/tags/v0.99
41           f25a265a342aed6041ab0cc484224d9ca54b6f41        refs/tags/v0.99.1
42           7ceca275d047c90c0c7d5afb13ab97efdf51bd6e        refs/tags/v0.99.3
43           c5db5456ae3b0873fc659c19fafdde22313cc441        refs/tags/v0.99.2
44           0918385dbd9656cab0d1d81ba7453d49bbc16250        refs/tags/junio-gpg-pub
45           $ git ls-remote http://www.kernel.org/pub/scm/git/git.git master pu rc
46           5fe978a5381f1fbad26a80e682ddd2a401966740        refs/heads/master
47           c781a84b5204fb294c9ccc79f8b3baceeb32c061        refs/heads/pu
48           b1d096f2926c4e37c9c0b6a7bf2119bedaa277cb        refs/heads/rc
49           $ echo http://www.kernel.org/pub/scm/git/git.git >.git/branches/public
50           $ git ls-remote --tags public v\*
51           d6602ec5194c87b0fc87103ca4d67251c76f233a        refs/tags/v0.99
52           f25a265a342aed6041ab0cc484224d9ca54b6f41        refs/tags/v0.99.1
53           c5db5456ae3b0873fc659c19fafdde22313cc441        refs/tags/v0.99.2
54           7ceca275d047c90c0c7d5afb13ab97efdf51bd6e        refs/tags/v0.99.3
55

AUTHOR

57       Written by Junio C Hamano <gitster@pobox.com[1]>
58

GIT

60       Part of the git(1) suite
61

NOTES

63        1. gitster@pobox.com
64           mailto:gitster@pobox.com
65
66
67
68Git 1.7.1                         08/16/2017                  GIT-LS-REMOTE(1)
Impressum