How can i remove the Commit appwrite did to my github? I tryed to use git reset --hard HEAD~1 command in terminal to reset but now my uncommited files i worked on for VERY long is gone! 1. How can i remove the commit 2. How can i get my files back?! Please help me
TL;DR
- Developer wants to remove a recent commit on GitHub
- Tried using 'git reset --hard HEAD~1' command, but lost uncommitted files
- Solution: Try using 'git reflog' to find lost commits, then 'git reset --hard <commit hash>' to revert back and retrieve lost files.