• Artyom@lemm.ee
    link
    fedilink
    arrow-up
    29
    arrow-down
    5
    ·
    13 days 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
      43
      ·
      13 days 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
        13
        arrow-down
        1
        ·
        12 days 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
          5
          ·
          12 days 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
          3
          ·
          12 days ago

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