hudada-cli
Version:
专为程序员准备的本地文档搜索,快捷开发工具
17 lines (13 loc) • 449 B
Markdown
git show
`git show`命令用于查看commit的内容
```bash
输出某次提交的元数据和内容变化
git show [commit]
git show 12a86bc38 # By revision
git show v1.0.1 # By tag
git show feature132 # By branch name
git show 12a86bc38^ # Parent of a commit
git show 12a86bc38~2 # Grandparent of a commit
git show feature132@{yesterday} # Time relative
git show feature132@{2.hours.ago} # Time relative
```