How to check who deleted a specific file if you don't know the commit, data and even branch?
Hi, @Akarshit Verma! Welcome to the community!
If you have the file name, you can run the following command to see the changes of this file even if the file was deleted:
git log --full-history -- filename
In case you would like to see just the last commit, which deleted the file, use -1 in the command above:
git log --full-history -1 -- {file name}
This will show you the author and the date of this commit.
I hope this helps, but do let me know if you have any questions.
Kind regards,
Caroline
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.