|
|
|
|
|
by Sverigevader
1306 days ago
|
|
Sorry this happened to you. Next time, if you want to reset the latest commit to an unstaged state: git reset HEAD~
But regarding "deleting all my recent changes", another command I'd like to introduce you to is; git reflog
It shows you all of your commits that changed the tip (HEAD). Chances are your changes could be found there.I don't blame you for not knowing this. I learned by trial and error and most importantly, good colleagues who showed me the way. edit: Typo/grammar |
|