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.
git ls-remote
git ls-remote --heads
git ls-remote --tags
git ls-remote repository_url
git ls-remote repository_name "pattern"