Is there a way to find and display in which commit a file has been deleted in Github, but without cloning it locally? For example, using the website's online search form?
2 Answers
No, there is no way to do this without cloning the repo.
1 Comment
BCS
It might not be a UI feature, but with a little URL patching it's very possible. (At least it is now.)
You can use the commits url instead of blob url to get the list of commits where the file was modified. The latest commit in this list shows where the file was deleted.
For example: To check when the file tests/specs/lint/jsx/main.jsx was deleted in the deno repo, go to this url: https://github.com/denoland/deno/commits/main/tests/specs/lint/jsx/main.jsx. You will see a list of commits and you will notice that the file was deleted in the latest commit listed.