cancel
Showing results for 
Search instead for 
Did you mean: 

How to get back the deleted GitHub folder

Hi

I was trying to put an updated version of my project on Github using Github desktop. I have a backend folder and a frontend folder. In the past the frontend folder has a white arrow on Github so I tried deleting the .git folder created by react and committed again a few weeks ago but it did not fix it. Today I tried again to get the folder to commit, but it wasn't so I went to a different branch and then back and got an error about a .lock file and my frontend folder is now empty. Is there a way to recover this folder somehow?

Thanks

1 REPLY 1

Oh no, that sounds rough! Have you tried using Git's reflog? I accidentally deleted a crucial file once, and git reflog + git checkout saved my bacon.

Does anyone know if that would work in this scenario, especially with the .lock file issue?

MariaFlores
Member