Git - How to Find a Deleted File in Commit History?

By Hardik Savani June 2, 2023 Category : Git

Hi Friends,

Today, I will let you know example of git find deleted file in history. This post will give you a simple example of git view deleted file. I would like to share with you git log deleted file. you'll learn git view deleted file. Alright, let’s dive into the details.

Onetime i was need to check which files i deleted before, When i was working on my laravel application. I was try to find how to show deleted files log from git command. But at last found git command from google search. we can view all deleted file log from our git repository. So, let's fire bellow command.

Command:

git log --diff-filter=D --summary

I hope it can help you

Tags :
Shares