大网数据广告活动
Linux 与通用命令

git-show · 常用命令示例

· 52CE 我爱测

Show various types of Git objects (commits, tags, etc.). > More information: <https://git-scm.com/docs/git-show>.

git show

Show various types of Git objects (commits, tags, etc.). More information: https://git-scm.com/docs/git-show.

  • Show information about the latest commit (hash, message, changes, and other metadata):

git show

  • Show information about a specific commit, tag, or branch (such as HEAD for the latest commit):

git show

  • Show only the list of added, renamed, or deleted files:

git show --summary

  • Ignore whitespace when comparing lines:

git show

  • Show a commit's message in a single line, suppressing the diff output:

git show --oneline

  • Show diff statistics for changed files (such as lines added and removed):

git show --stat

  • Show a simplified list of all files changed in a commit (modified, added, and deleted):

git show --name-only

  • Show the contents of a file as it was at a given revision (e.g. branch, tag, or commit):

git show :

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

资料来源与适用范围

资料来源
tldr-pages contributors
适用范围
请按文中版本与环境说明核对
内容语言
中文;命令、路径和错误标识保留技术原文
本地收录日期
2026-11-15
授权说明
CC BY 4.0

正文与所需资源由本站本地存储。查看来源及更新记录 ↗

请按适用版本和实际日志确认原因;本站没有对每一种系统或设备逐项执行文中的操作。