Git file history

Git file history

在 GitLab 0.8.0 中

Git 文件历史记录提供有关与文件关联的提交历史记录的信息.

当选择” 历史记录”按钮时,您将看到一个带有说明信息的屏幕:

如果将鼠标悬停在 UI 中的提交上,您将看到上次修改提交的确切日期和时间.

如果从命令行运行git ,则等效命令为git log <filename> . 例如,如果要在本地目录中找到有关README.md文件的history信息,请运行以下命令:

  1. commit 0e62ed6d9f39fa9bedf7efc6edd628b137fa781a
  2. Author: Mike Jang <mjang@gitlab.com>
  3. Date: Tue Nov 26 21:44:53 2019 +0000
  4. Author: Marcin Sedlak-Jakubowski <msedlakjakubowski@gitlab.com>
  5. Date: Mon Nov 4 19:58:27 2019 +0100
  6. Fix typo
  7. commit 21cc1fef11349417ed515557748369cfb235fc81
  8. Author: Jacques Erasmus <jerasmus@gitlab.com>
  9. Date: Mon Oct 14 22:13:40 2019 +0000
  10. Added rollup to the project
  11. commit 2f5e895aebfa5678e51db303b97de56c51e3cebe
  12. Author: Achilleas Pipinellis <axil@gitlab.com>
  13. Date: Fri Sep 13 14:03:01 2019 +0000
  14. Remove gitlab-foss Git URLs as we don't need them anymore