snippetbashTip
git show-ref — Git command for listing references. More information: <https://git-scm.com/docs/git-show-ref>.
Viewed 0 times
commandgit show-refclilistingforreferencesgit
Problem
How to use the
git show-ref command: Git command for listing references. More information: <https://git-scm.com/docs/git-show-ref>.Solution
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-refShow only heads references:
git show-ref --branchesShow only tags references:
git show-ref --tagsVerify that a given reference exists:
git show-ref --verify {{path/to/ref}}Code Snippets
Show all refs in the repository
git show-refShow only heads references
git show-ref --branchesShow only tags references
git show-ref --tagsVerify that a given reference exists
git show-ref --verify {{path/to/ref}}Context
tldr-pages: common/git show-ref
Revisions (0)
No revisions yet.