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

      • @Valmond
        link
        33 hours ago

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

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

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

    • @Benaaasaaas
      link
      87 hours ago

      This is without gitignore, so probably just installed one js dependency