Reputation: 2533
What I want is to get a list of files that where deleted since the last commit to git.
Currently I'm getting a list of all the changed files since the last commit which I then use to upload those files to my server through jenkins. However I couldn't find anything on getting a list of deleted files since the last commit.
So what I'm trying to achieve is getting a list of the removed files and remove these from the server through jenkins.
I hope it's clear what I'm trying to achieve
Upvotes: 0
Views: 297
Reputation: 31
Try to use
git diff --diff-filter=D --summary
it will give you list of deleted files one per line like following:
delete mode 100644 path/deleted.file
Upvotes: 1