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: [ Ссылка ]
-----------------------------------------------
Image attributions:
Girl house fire image - [ Ссылка ]
SPiderman - [ Ссылка ]
I don't always git reset - [ Ссылка ]
Wonder woman - [ Ссылка ] Author: Divulgação - Creative Commons Share Alike
Dunkirk - [ Ссылка ]
Spiderman Homecoming - [ Ссылка ]
![](https://s2.save4k.ru/pic/MijDnC4mz9w/maxresdefault.jpg)