Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Find commit where file has been deleted in GitHub (without cloning repo)

Tags:

github

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?

like image 851
ThomasC Avatar asked Jun 18 '14 08:06

ThomasC


People also ask

How do I recover deleted files from github?

If you have deleted the file and already committed the changes, you need to use the ` git checkout` command to restore the file. First, you need to find out the checksum of the commit that deleted the file, and then check out the file from the previous commit.


1 Answers

No, there is no way to do this without cloning the repo.

like image 168
magikid Avatar answered Oct 19 '22 06:10

magikid