Maven (famous)@lemmy.zip to Programmer Humor@programming.dev · edit-23 days agoMicrosoft Please Fixlemmy.zipimagemessage-square336fedilinkarrow-up1886arrow-down123file-text
arrow-up1863arrow-down1imageMicrosoft Please Fixlemmy.zipMaven (famous)@lemmy.zip to Programmer Humor@programming.dev · edit-23 days agomessage-square336fedilinkfile-text
minus-squareKorne127@lemmy.worldlinkfedilinkarrow-up43·2 days 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-squareByteOnBikes@slrpnk.netlinkfedilinkarrow-up13arrow-down1·2 days agoThis person is why we have that meme where devs would rather struggle for a week than spend a few hours reading the documentation.
minus-squareValmond@lemmy.worldlinkfedilinkarrow-up4·2 days agoJust curious, git doesn’t touch untracked files though?
minus-squareGreenAppleTree@lemmy.worldlinkfedilinkarrow-up5·2 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.
minus-squarefum@lemmy.worldlinkfedilinkarrow-up3·2 days agogit clean does. Turns out VSCode did a clean with that GUI option at that time, not sure of current behaviour.
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.
This person is why we have that meme where devs would rather struggle for a week than spend a few hours reading the documentation.
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.
Thanks, didn’t know!
git clean
does. Turns out VSCode did a clean with that GUI option at that time, not sure of current behaviour.