Skip to content

Instantly share code, notes, and snippets.

@mlcollard
Created November 14, 2014 16:09
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mlcollard/c858ab8efa9b01476903 to your computer and use it in GitHub Desktop.
Save mlcollard/c858ab8efa9b01476903 to your computer and use it in GitHub Desktop.
ISO Date of first commit to a repository, for all the files in a directory
ls . | xargs -I^ bash -c 'echo -n ^; echo -en "\t"; cd ^; git rev-list HEAD | tail -n 1 | xargs -I% git log --date=iso % | grep "Date:" | cut -d":" -f2- | cut -c4- | cut -d"+" -f1'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment