Today I’ll lost all of my daily works while trying to change my git history
After a little research on Stackoverflow I’ve found an answer. Here is the summary:
- Find latest commit with git reflog command.
- Copy the hash with Ctrl+Insert after selecting.
- Use magical command: git reset –hard <command_hash>. You can paste the copied hash with Shift+Insert shortcut.