git 查看各目录的最后一次修改时间

1 #!/bin/bash
2 git ls-tree -r --name-only HEAD | while read file; do
3     echo "$(git log -1 --format="%ai" -- $file) $file"
4   done | sort -r

 

posted @ 2024-10-12 16:59  郭流水  阅读(46)  评论(0)    收藏  举报