Find recently added files with git

17

4

I want to get a list of the most recently added files using git. Is there any sane way to do this?

singpolyma

Posted 2010-03-08T20:22:43.883

Reputation: 799

Answers

25

git whatchanged --diff-filter=A displays commits that added files, and the files they added, newest first.

Dave Vandervies

Posted 2010-03-08T20:22:43.883

Reputation:

git whatchanged is a bit of an anachronism, you can use git log --diff-filter=A --stat or git log --diff-filter=A --numstat --pretty='COMMIT: %H %cd' for something more machine readable. – Terry Brown – 2019-03-21T16:48:38.707