Poor guy basically did a git reset —hard HEAD without even a git repository
Even reset hard wouldn’t delete untracked files. This was a complete overreach by the GUI, performing a
clean
(and likely a forced one, as git’s requireForce defaults to true).And they did rectify that eventually, giving a warning, and an option to simply reset. It’s unfortunate this poor person had to be the trigger for that change.
Typical web developer. He didn’t even know files can be deleted without going into „recycle bin”
Why are we dissing web developers? What is this bullshit elitism?
I think it’s a joke about how noobs only learn javascript and make blazing fast webapps while knowing nothing about computers.
VSCodium better
This is 2000% user error lmao even tho VS Code is a pain in the ass on w*ndows
Did you actually read the thread and see the bug they found where it deleted files unassociated with git?
I did but I must have misread maybe? Because what it looked like was it picked up the existing fucked up git repo but if vscode did the fucking up the less of a skill issue 😮💨😮💨😮💨
It was on this linked issue. They discuss the UX of it more there and I think it’s a little better. https://github.com/microsoft/vscode/issues/32459
In particular, this comment helps explain why I think this is (was) a problem.
As we discuss this, keep in mind that most users who hit the “omg where are all my files” issue come into following these three simple steps:
- Oh what is this? Yes, let’s initialize, git sounds awesome, people use it.
- Oh what is this? All my files appear in this list… but they didn’t before. It looks like its touching my files, I don’t like that, how to I get them out of here?
- Oh what is this? Discard all changes sounds a lot like what I want to do. 💀
People don’t hit this issue because we have that action; they hit it because they want to clear that list. And they will go through great lengths to get there, even if not knowing what their doing or after warned that they are in dangerous waters.
Coupled with the behavior of this “discard all” being
git clean
rather thangit reset
, I get the complaints.
If you ever happen to have 5000 uncommitted files, you shouldn’t be asking yourself if you should commit more often. You should be asking yourself how many new repos you should be making.
The person didn’t have any git repository; probably a new programmer that didn’t know how version control works and just clicked discard without understanding what that means in this situation.
This person is why we have that meme where devs would rather struggle for a week than spend a few hours reading the documentation.
Just curious, git doesn’t touch untracked files though?
‘git reset’ won’t. ‘git clean’, on the other hand, most certainly does. Even then you have to --force it by default, to prevent an accidental clean.
git clean
does. Turns out VSCode did a clean with that GUI option at that time, not sure of current behaviour.
This is without gitignore, so probably just installed one js dependency
Same account that complained about the christmas santa hat
Link? It being “ghost” just means the user has been deleted so I can’t actually go looking.
Man I get paranoid about synchronization programs for this very reason. There’s usually some turnkey easy-mode enabled as soon as you first launch that’s like:
“Hey you wanna back up your entire NAS to your phone?! That’ll be fun, right?!”
And you’re like “…No.”
And then it wants to obliterate everything so it’s all “synchronized”, often it’s not easy to find a “No, stop, don’t do anything at all until I configure this.” Option.
iTunes was SO BAD about this.
Syncthing is the least-bad sync software I’ve ever run. It’s got some footguns but it’s still brilliant.
I would imagine there’s still ways to back up version controlled software right?
is op stupid ?
I’m sure that the “three months of work” was completely shit code. Anybody who is unfamiliar with source control (or even backups!) is prone to making stupid mistakes. Republican voters are likely to have a similar experience over the next 4 years.
“Microsoft Please Fix” ifadesi, kullanıcıların Microsoft ürünlerinde karşılaştıkları hatalar veya sorunlar nedeniyle şirketten çözüm talep ettiği bir internet meme’idir. Nakkaştepe Millet Bahçesi Menu
It also plays on the weird trope of people swearing at devs in foreign languages
In reality, VSCode has local file history called “Timeline”. It’s enabled by default.
https://github.com/microsoft/vscode-docs/blob/vnext/release-notes/v1_66.md#local-history
In reality, that was added four and a half years after this issue was opened.
Oh, didn’t notice this was a 7 year old issue.
Understandable; no time to check details when your fuse is that short
Reminds me of a hilarious bug in early GHC: https://gitlab.haskell.org/ghc/ghc/-/issues/163
The compiler will delete your source file if there’s any compile error. And the user complained only by sending a very polite email to report this bug. Simon Peyton Jones mentioned it in one of his talks and I still find it quite hilarious till this day.
Left the --hardcore compile option on. Easy mistake.
While I have some sympathy for anyone who loses months of work, as an IT administrator by day, all I have to say about their lack of backups, and lack of RTFM before messing with shit is:
HAHAHAHAHAHAHA HAHAHAHAHA. you got what you deserved fucker. GL.YF.
VS Code could really use some work in that regard and I really do feel bad for that person, but this is also just funny as heck
In fairness, it’s an old issue and they did put in the work to address the issue report.
Someone who does not know about “permanent delete” and not having backups, especially when switching to a new system, should have no business complaining about this.