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 --heads
-
Show only tags references:
git show-ref --tags
-
Verify that a given reference exists:
git show-ref --verify {{path/to/ref}}
License and Disclaimer
The content on this page is copyright © 2014—present the tldr-pages team and contributors.This page is used with permission under Creative Commons Attribution 4.0 International License.
While we do attempt to make sure content is accurate, there isn't a warranty of any kind.