Files
cheatsheet-tldr/tldr/git-show-ref
2025-04-26 00:18:47 +00:00

26 lines
453 B
Plaintext

---
syntax: markdown
tags: [tldr, common]
source: https://github.com/tldr-pages/tldr.git
---
# git show-ref
> Git command for listing references.
> More information: <https://git-scm.com/docs/git-show-ref>.
- Show all refs in the repository:
`git show-ref`
- Show only heads references:
`git show-ref --branches`
- Show only tags references:
`git show-ref --tags`
- Verify that a given reference exists:
`git show-ref --verify {{path/to/ref}}`