Phoenix3875@lemmy.world to Programmer Humor@programming.devEnglish · 1 year agoOne command to rule them alllemmy.worldimagemessage-square11fedilinkarrow-up126arrow-down11
arrow-up125arrow-down1imageOne command to rule them alllemmy.worldPhoenix3875@lemmy.world to Programmer Humor@programming.devEnglish · 1 year agomessage-square11fedilink
minus-squarejoyjoy@lemmy.worldlinkfedilinkEnglisharrow-up0·1 year agoNeither remove untracked files sadly.
minus-squareBlueBockser@programming.devlinkfedilinkarrow-up1arrow-down1·1 year agoI think git clean is more appropriate. With git stash you create a stash which you then have to drop.
minus-squareHairHeel@programming.devlinkfedilinkarrow-up2·1 year agoWho says you have to drop it? I’ve got stuff from 2007 in there somewhere.
minus-squareBlueBockser@programming.devlinkfedilinkarrow-up0arrow-down1·1 year agoOf course you don’t have to, but if you don’t plan on ever using it then it’s just trash living in your git folder. If you do plan on using it again in the future, then it’s usually better to make it a branch so you can push it to a remote.
Neither remove untracked files sadly.
git stash my friend
I think
git clean
is more appropriate. Withgit stash
you create a stash which you then have to drop.Who says you have to drop it? I’ve got stuff from 2007 in there somewhere.
Of course you don’t have to, but if you don’t plan on ever using it then it’s just trash living in your git folder. If you do plan on using it again in the future, then it’s usually better to make it a branch so you can push it to a remote.