That feeling when you use `git checkout .` instead of `git checkout -` and actually lost uncommitted changes 
-
Show this thread
-
This happens when you run around with a "anything can be undone in git" mindset. Reminds me of the dark times before I knew what version control was.
4 replies 0 retweets 3 likesShow this thread -
Replying to @benjaminencz
Doesn’t reflog keep those changes, even if they’re uncommitted?
1 reply 0 retweets 0 likes -
Replying to @warrenm
Unfortunately no! Git never knew about them, so they are gone without a trace. https://github.com/blog/2019-how-to-undo-almost-anything-with-git …pic.twitter.com/32gexNlVAa
1 reply 0 retweets 0 likes -
Replying to @benjaminencz
Damn. Well, if you’re on a Mac, and your editor supports auto-save, all may not be lost https://support.apple.com/kb/PH25757?locale=en_US …
1 reply 0 retweets 0 likes -
Replying to @warrenm
Interesting! Seems like Xcode doesn’t have support for this though?
1 reply 0 retweets 0 likes
My hazy memory seems to recall using TextEdit to recover a source file that I’d been working with in Xcode that got overwritten by an erroneous checkout, but I could be mistaken.
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.