Files
tldr/pages.zh/common/git-show-ref.md

350 B

git show-ref

用于列出引用的 Git 命令。 更多信息:https://git-scm.com/docs/git-show-ref

  • 显示仓库中的所有引用:

git show-ref

  • 仅显示头部引用:

git show-ref --heads

  • 仅显示标签引用:

git show-ref --tags

  • 验证给定的引用是否存在:

git show-ref --verify {{path/to/ref}}