1
0
Fork 0
mirror of https://github.com/tldr-pages/tldr.git synced 2025-04-29 23:24:55 +02:00
tldr/pages/common/git-show-ref.md
Managor 8e09a08059
common*: refresh old pages part 3 (#16257)
Co-authored-by: Machiavelli <145562237+MachiavelliII@users.noreply.github.com>
2025-04-25 21:19:03 +03:00

20 lines
360 B
Markdown

# 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}}`