I'd say it's "unfortunate" that getting myself into a confusing Git state was neither caused by having committed my changes accidentally, nor resolved by `git reset --hard`.
-
-
Replying to @propensive
I've seen race conditions caused by multiple git-aware tools pointing at the same repo simultaneously, usually while I rebase or do other weird things. When that has happened to me, the only solution has been manually fiddling with the git filesystem representation.
1 reply 0 retweets 1 like -
Replying to @djspiewak
It's interesting, I was just contemplating exactly this! My confidence in my own ability to mentally track my Git state perfectly doesn't point at this being an explanation... but I know that VS Code is automatically doing some background updates to my Git repo...
1 reply 0 retweets 1 like -
Replying to @propensive @djspiewak
By far the most likely explanation is still that I messed up somewhere. I'm much worse at Git than casual observers might guess, so I pin this on human error, but if it happens a few times, I'll start to think about alternative explanations.
1 reply 0 retweets 1 like -
Replying to @propensive @djspiewak
But do you have the code you want even if git is in a mess? I’ve sometimes ended up there and copy it somewhere, hard reset and use diff to bring things back in.
1 reply 0 retweets 0 likes -
Replying to @channingwalton @djspiewak
I've been there many times before... But this particular code never reached Git, and then I did I `reset --hard` (because I was confused) and it got deleted. It took 20 irritating minutes to rewrite, anyway. I didn't need to redo the 40 minutes of thinking time, at least.
1 reply 0 retweets 1 like -
Replying to @propensive @djspiewak
Oh well. Maybe the code is better for it.
1 reply 0 retweets 1 like
Possibly... maybe my Git-caution is better for it, too.
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.