Created
February 26, 2013 20:30
-
-
Save kennyp/5041881 to your computer and use it in GitHub Desktop.
If you need to sort files by creation date in git. ex. `find . -name '*.rake' | git by-date`
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/bash | |
while read f | |
do | |
echo "$(git log --format="%at" --reverse "$f" | head -n1) --> $f" | |
done | sort -n |
fatal: empty string is not a valid pathspec. please use . instead if you meant to match all paths
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Thank you @kennyp!