I force pushed my git repository by mistake

12 Views Asked by At

My .git folder is corrupted, Github Desktop detects that repo is new. I was searching about how i can push the new changes i found this command git push -f origin master. I executed it by mistake, it resets the repo history

I didn't expect that behaviour, is there any method how i can reset my old repo history ?

0

There are 0 best solutions below