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

DESCRIPTION

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

OPTIONS

17       -h|--heads, -t|--tags
18           Limit to only refs/heads and refs/tags, respectively. These options
19           are not mutually exclusive; when given both, references stored in
20           refs/heads and refs/tags are displayed.
21
22       -u <exec>, --upload-pack=<exec>
23           Specify the full path of git-upload-pack(1) on the remote host.
24           This allows listing references from repositories accessed via SSH
25           and where the SSH daemon does not use the PATH configured by the
26           user. Also see the --exec option for git-peek-remote(1).
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 <junkio@cox.net>
58

GIT

60       Part of the git(7) suite
61
62
63
64
65Git 1.5.3.3                       10/09/2007                  GIT-LS-REMOTE(1)
Impressum