how do i identify files/directories that were added or removed in a git commit?
Posted
by pocketfullofcheese
on Stack Overflow
See other posts from Stack Overflow
or by pocketfullofcheese
Published on 2010-04-01T01:10:11Z
Indexed on
2010/04/01
1:13 UTC
Read the original article
Hit count: 398
I need to write a script that incrementally keeps track of files and directories added and removed from a git repo.
I have tried to use: git log -n1 --pretty="format:" --name-only
But that only tells me which files were committed. It does not specify if it was added or removed.
Any ideas?
© Stack Overflow or respective owner