NoSixties NoSixties - 3 months ago 11
Git Question

Get a list of the deleted files since the last commit

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

Answer

Here you are: git diff --diff-filter=D --name-only HEAD

Comments