Git show

本文最后更新于:2024年9月8日 晚上

Git show

显示某次提交的元数据和内容变化

1
$ git show [commit]
  • --name-only:显示某次提交发生变化的文件。

显示某次提交时,某个文件的内容

1
$ git show [commit]:[filename]

查看某个标签的提交信息

1
$ git show [tag]

本博客所有文章除特别声明外,均采用 CC BY-SA 4.0 协议 ,转载请注明出处!