1
0
Fork 0
mirror of https://github.com/tldr-pages/tldr.git synced 2025-04-22 13:22:06 +02:00
tldr/pages/common/git-ls-remote.md
bl-ue 8ebd171d6f
*: fix typos reported by Hunspell (#5848)
Co-authored-by: marchersimon <50295997+marchersimon@users.noreply.github.com>
Co-authored-by: Seth Falco <seth@falco.fun>
Co-authored-by: Patrice Denis <patricedenis@users.noreply.github.com>
2021-05-20 16:13:41 -04:00

25 lines
766 B
Markdown

# git ls-remote
> Git command for listing references in a remote repository based on name or URL.
> If no name or URL are given, then the configured upstream branch will be used, or remote origin if the former is not configured.
> More information: <https://git-scm.com/docs/git-ls-remote>.
- Show all references in the default remote repository:
`git ls-remote`
- Show only heads references in the default remote repository:
`git ls-remote --heads`
- Show only tags references in the default remote repository:
`git ls-remote --tags`
- Show all references from a remote repository based on name or URL:
`git ls-remote {{repository_url}}`
- Show references from a remote repository filtered by a pattern:
`git ls-remote {{repository_name}} "{{pattern}}"`