Maven (famous)@lemmy.zip to Programmer Humor@programming.dev · edit-22 months agoMicrosoft Please Fixlemmy.zipimagemessage-square171fedilinkarrow-up1535arrow-down112file-text
arrow-up1523arrow-down1imageMicrosoft Please Fixlemmy.zipMaven (famous)@lemmy.zip to Programmer Humor@programming.dev · edit-22 months agomessage-square171fedilinkfile-text
minus-squareKorne127@lemmy.worldlinkfedilinkarrow-up32·2 months agoThe 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.
minus-squareValmond@lemmy.worldlinkfedilinkarrow-up2·2 months agoJust curious, git doesn’t touch untracked files though?
minus-squareGreenAppleTree@lemmy.worldlinkfedilinkarrow-up1·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.
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.
Just curious, git doesn’t touch untracked files though?
‘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.