Mar
08
2011
0
By David Luhman
OK, this is a stupid one-liner, but it works.
Here's how to find newly added files to a Git repository :
git whatchanged | grep : | grep ' A' | grep -v Author: | grep -v Date: | grep \.\.\. | more
:000000 100644 0000000... 89fd0d4... A tests/f1.php
:000000 100755 0000000... c430e79... A tests/f2.php
:000000 100755 0000000... 130edda... A tests/f3.php
:000000 100644 0000000... 0f395e9... A tests/f4.php
.
.
.
See this quick reference :
http://superuser.com/questions/117626/find-recently-added-files-with-git
Categories: