Created
July 6, 2017 20:34
-
-
Save olbartek/362d8938da4efa40be9c2e45c07fde35 to your computer and use it in GitHub Desktop.
Revisions
-
olbartek created this gist
Jul 6, 2017 .There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,9 @@ Have you accidentially made a hard reset to some of your commits? git reset --hard HEAD~1 You can simply check git reflog, because Every time the current HEAD gets updated a new entry will be added to the reflog. git reflog Find the desired commit and make a hard reset to it. git reset --hard <commit>