commands.sh

git show-ref

all

Git command for listing references.

More info →

Examples (4)

Show all refs in the repository

Show only heads references

git show-ref --branches

Show only tags references

Verify that a given reference exists

git show-ref --verify path/to/ref
made by @shridhargupta | data from tldr-pages