|
|
|
|
|
by OkayPhysicist
1319 days ago
|
|
Just the explanation of "no matter how bad you've fucked up your repo, as long as you haven't run 'git gc' or waited a few years, all you need to fix it is to find the commit hash from git reflog, git checkout that hash, and then git branch to give you an easily accessible reference to the commit". Followed by some pointers on how to efficiently dig through reflog. It's pretty freeing to realize that it's basically impossible to lose committed code. |
|