• Korne127@lemmy.world
    link
    fedilink
    arrow-up
    32
    ·
    2 months 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.

      • GreenAppleTree@lemmy.world
        link
        fedilink
        arrow-up
        1
        ·
        2 months 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.