Add macOS command to get file dates

This commit is contained in:
James Skemp 2020-08-08 16:57:08 -05:00
parent c34af05c2e
commit 36910975c3
1 changed files with 6 additions and 1 deletions

View File

@ -74,6 +74,11 @@ git shortlog -s -n
# View mostly commonly modified files, based upon commits.
git log --pretty=format: --name-only | sort | uniq -c | sort -rg | head -10
# View all files in Git with the date the file was last touched in Git. PowerShell.
# View all files in Git with the date the file was last touched in Git.
# macOs.
git ls-files | while read file; do git log -n 1 --pretty="Filename: $file, commit: %h, date: %ad" -- $file; done | less
# PowerShell.
git ls-tree -r --name-only HEAD | ForEach-Object { "$(git log -1 --format="%ai" -- "$_")`t$_" }
```