Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SHELL

git ls files sort by date

git log HEAD --pretty="/invert:%h" --name-only | grep -v -E "^/invert:|^$" | sort -u | while read path;do echo $(git log -1 --pretty="%ad %h" --date=format:"%Y-%m-%d %H:%M:%S" -- "$path") $path;done | sort -u
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #git #ls #files #sort #date
ADD COMMENT
Topic
Name
6+9 =