Delete some files from github web interface. How to resore them?

Dear experst.
Recently I deleted some files from my profile Java projects via web interface.
I couldn’t find any way to restore them back?
I would be apprecciate for any advice.

I don’t think there’s a way to revert a commit over the web interface, but you can definitely see the old version by checking the history. Click on the “[number] commits” part:

That’ll give you a list of commits, from newest to older. If you click on a commit you can see the changes it made, and also browse the repository at that commit.

On the command line (or a local GUI of your choice) you could either revert the commit that deleted the files or reset the branch to a state before they were deleted.

Thank you for advice!
Try to do it.

1 Like