git-ls-remote
Git command for listing references in a remote repository based on name or URL. tldr-pages
On several platforms
Several platforms
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.
Show all references in the default remote repository
git ls-remoteIdentifyShow only heads references in the default remote repository
git ls-remote --headsIdentifyShow only tags references in the default remote repository
git ls-remote --tagsIdentifyShow all references from a remote repository based on name or URL
git ls-remote repository_urlIdentifyShow references from a remote repository filtered by a pattern
git ls-remote repository_name "pattern"Identify