• @Korne127
    link
    401 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.

    • @[email protected]
      link
      fedilink
      121 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.

    • @Valmond
      link
      31 month ago

      Just curious, git doesn’t touch untracked files though?

      • @GreenAppleTree
        link
        51 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.

        • @Valmond
          link
          11 month ago

          Thanks, didn’t know!

      • @fum
        link
        31 month ago

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