-h, --heads, -t, --tags
Limit to only refs/heads and refs/tags, respectively. These
options are not mutually exclusive; when given both, references
stored in refs/heads and refs/tags are displayed.
Do not show peeled tags or pseudorefs like HEAD in the output.
Do not print remote URL to stderr.
Specify the full path of git-upload-pack on the remote host. This
allows listing references from repositories accessed via SSH and
where the SSH daemon does not use the PATH configured by the
Exit with status "2" when no matching refs are found in the
remote repository. Usually the command exits with status "0" to
indicate it successfully talked with the remote repository,
whether it found any matching refs.
Expand the URL of the given remote repository taking into account
any "url.<base>.insteadOf" config setting (See git-config(1)) and
exit without talking to the remote.
In addition to the object pointed by it, show the underlying ref
pointed by it when showing a symbolic ref. Currently, upload-pack
only shows the symref HEAD, so it will be the only one shown by
The "remote" repository to query. This parameter can be either a
URL or the name of a remote (see the GIT URLS and REMOTES
sections of git-fetch(1)).
When unspecified, all references, after filtering done with
--heads and --tags, are shown. When <refs>... are specified, only
references matching the given patterns are displayed.
This page is part of the git (Git distributed version control system)
project. Information about the project can be found at
⟨http://git-scm.com/⟩. If you have a bug report for this manual page,
see ⟨http://git-scm.com/community⟩. This page was obtained from the
project's upstream Git repository ⟨https://github.com/git/git.git⟩ on
2017-03-13. If you discover any rendering problems in this HTML ver‐
sion of the page, or you believe there is a better or more up-to-date
source for the page, or you have corrections or improvements to the
information in this COLOPHON (which is not part of the original man‐
ual page), send a mail to firstname.lastname@example.org
Git 2.8.0.rc1 03/10/2016 GIT-LS-REMOTE(1)