Articles
git
How to find a files age in gitgit

You can find a files age using the git log command. As seen below

git log --diff-filter=A --follow <file>

For Example

git log --diff-filter=A --follow README.md

How it works

  • --diff-filter=A filters only added files
  • --follow follows the file through any renames it has had