Add macOS command to get file dates
This commit is contained in:
parent
c34af05c2e
commit
36910975c3
|
@ -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$_" }
|
||||
```
|
||||
|
|
Loading…
Reference in New Issue