6 git-ls-remote - Look at references other repository has.
11 'git-ls-remote' [--heads] [--tags] <repository> <refs>...
15 Displays the references other repository has.
20 -h|--heads, -t|--tags::
21 Limit to only refs/heads and refs/tags, respectively.
22 These options are _not_ mutually exclusive; when given
23 both, references stored in refs/heads and refs/tags are
27 Location of the repository. The shorthand defined in
28 $GIT_DIR/branches/ can be used.
31 When unspecified, all references, after filtering done
32 with --heads and --tags, are shown. When <refs>... are
33 specified, only references matching the given patterns
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
58 Written by Junio C Hamano <junkio@cox.net>
62 Part of the gitlink:git[7] suite