• GreenAppleTree@lemmy.world
      link
      fedilink
      arrow-up
      0
      ·
      1 month ago

      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.

  • riodoro1@lemmy.world
    link
    fedilink
    arrow-up
    0
    ·
    1 month ago

    Typical web developer. He didn’t even know files can be deleted without going into „recycle bin”

      • x00z@lemmy.world
        link
        fedilink
        English
        arrow-up
        0
        ·
        1 month ago

        I think it’s a joke about how noobs only learn javascript and make blazing fast webapps while knowing nothing about computers.

      • merthyr1831@lemmy.ml
        link
        fedilink
        English
        arrow-up
        0
        ·
        1 month ago

        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 😮‍💨😮‍💨😮‍💨

        • JackbyDev@programming.dev
          link
          fedilink
          English
          arrow-up
          0
          ·
          edit-2
          1 month ago

          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:

          1. Oh what is this? Yes, let’s initialize, git sounds awesome, people use it.
          2. 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?
          3. 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 than git reset, I get the complaints.

  • Artyom@lemm.ee
    link
    fedilink
    arrow-up
    0
    ·
    1 month ago

    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.

    • Korne127@lemmy.world
      link
      fedilink
      arrow-up
      0
      ·
      1 month ago

      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.

      • ByteOnBikes@slrpnk.net
        link
        fedilink
        arrow-up
        0
        ·
        1 month ago

        This person is why we have that meme where devs would rather struggle for a week than spend a few hours reading the documentation.

        • GreenAppleTree@lemmy.world
          link
          fedilink
          arrow-up
          0
          ·
          1 month ago

          ‘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.

        • fum@lemmy.world
          link
          fedilink
          arrow-up
          0
          ·
          1 month ago

          git clean does. Turns out VSCode did a clean with that GUI option at that time, not sure of current behaviour.

  • MonkeMischief@lemmy.today
    link
    fedilink
    arrow-up
    0
    ·
    1 month ago

    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?

  • DelightfullyDivisive@lemmy.world
    link
    fedilink
    English
    arrow-up
    0
    ·
    1 month ago

    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.

  • Phoenix3875@lemmy.world
    link
    fedilink
    arrow-up
    0
    ·
    1 month ago

    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.

  • MystikIncarnate@lemmy.ca
    link
    fedilink
    English
    arrow-up
    0
    ·
    1 month ago

    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.

  • Treczoks@lemmy.world
    link
    fedilink
    arrow-up
    0
    ·
    1 month ago

    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.