1

I deleted a commit in github when I did want to but I do not know how to bring it back. It just shows me it's history. (solved)

RatInChat
  • 140
  • 1
  • 12
  • https://stackoverflow.com/questions/34751837/git-can-we-recover-deleted-commits – Matt Aug 29 '22 at 23:08
  • yes but it was done in github. How can I revert it even though the project is not connected to my local machine using git. – RatInChat Aug 30 '22 at 00:34
  • 1
    If you do a "git log" it should still show the prior commit. Then do a "git reset --hard [commit#]" and push it again. Git is designed to allow for mistakes. – Matt Aug 30 '22 at 00:52

0 Answers0