arrow_back Back to Notebook
git
git
January 10, 2019

How to find a files age in git

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

Thanks for reading!

John Wiseman

Full-Stack Software Engineer building scalable digital solutions. specializing in modern web technologies and mission-critical systems.

© 2026 Wiseman Systems Pty. Ltd.

Navigation

Start a Conversation

Ready to discuss your next project? Let's build something extraordinary together.

Get in Touch