Undo Git hard reset

Git is a very powerful tool as we all know but if we are not careful while using it, we might get into a lot of trouble. “git reset --hard“ is such a command that can prove fatal and reset your entire repository if you are not cautious. So, In this tutorial, I will show how you can get back the lost files and changes you have done, because of a hard reset. Git stores information about all the files and modifications you have done every time you do a “git add“ or “git commit“. So, We will use that information to fetch these changes back. We will use “git fsck“ and “git reflog“ to accomplish these tasks. Don’t forget to SUBSCRIBE, COMMENT, LIKE LET’S GET IN TOUCH!!! Twitter : Google : My Blog : Facebook Page: ----------------------------------------------
Back to Top