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
HEADfor 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。离线整理了版式、链接和媒体显示。
