Command

git ls-remote --tags --refs

List remote tag refs and their object IDs without fetching them. --refs omits peeled auxiliary lines. A network remote may require authentication; use a local fixture for practice.

Formal Syntax & Structure

git syntaxgit
git ls-remote --tags --refs REMOTE

Working Example

Example Snippetgit
git ls-remote --tags --refs origin
Git Reference