Alex Rivera | Logout

how do i identify files/directories that were added or removed in a git commit?

Asked 2010-04-01T01:10:11.550
25

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?

Edit
Report

1 Answer

9
answered 2010-04-01T01:17:35.673

Your Answer