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
来源:tldr-pages contributors · 作者与贡献记录 · CC BY 4.0。离线整理了版式、链接和媒体显示。
