Phoenix3875@lemmy.world to Programmer Humor@programming.devEnglish · 2 年前One command to rule them alllemmy.worldimagemessage-square25fedilinkarrow-up1243arrow-down112
arrow-up1231arrow-down1imageOne command to rule them alllemmy.worldPhoenix3875@lemmy.world to Programmer Humor@programming.devEnglish · 2 年前message-square25fedilink
minus-squareBlueBockser@programming.devlinkfedilinkarrow-up17arrow-down1·2 年前I think git clean is more appropriate. With git stash you create a stash which you then have to drop.
minus-squareHairHeel@programming.devlinkfedilinkarrow-up37·2 年前Who says you have to drop it? I’ve got stuff from 2007 in there somewhere.
minus-squareBlueBockser@programming.devlinkfedilinkarrow-up2arrow-down1·2 年前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.
minus-squaresickday@kbin.sociallinkfedilinkarrow-up9·2 年前Yea but you can always git pop if you need any of your stashed changes
minus-squareOcelot@lemmies.worldlinkfedilinkarrow-up8·2 年前i chuckled at the thought of ‘git poop’ being a command. I’m going to alias that to something.
minus-squarePoastRotato@lemmy.worldlinkfedilinkarrow-up9·edit-22 年前You could make it run git pop until it clears the whole stash
git stash my friend
I think
git cleanis more appropriate. Withgit stashyou 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.
Yea but you can always
git popif you need any of your stashed changesi chuckled at the thought of ‘git poop’ being a command. I’m going to alias that to something.
You could make it run
git popuntil it clears the whole stash