@Phoenix3875 to Programmer [email protected]English • 2 years agoOne command to rule them allimagemessage-square23arrow-up1236arrow-down112
arrow-up1224arrow-down1imageOne command to rule them all@Phoenix3875 to Programmer [email protected]English • 2 years agomessage-square23
minus-square@[email protected]linkfedilink14•2 years agoI think git clean is more appropriate. With git stash you create a stash which you then have to drop.
minus-square@[email protected]linkfedilink33•2 years agoWho says you have to drop it? I’ve got stuff from 2007 in there somewhere.
minus-square@[email protected]linkfedilink1•2 years 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.
minus-squaresickdaylinkfedilink9•2 years agoYea but you can always git pop if you need any of your stashed changes
minus-squareOcelotlinkfedilink7•2 years agoi chuckled at the thought of ‘git poop’ being a command. I’m going to alias that to something.
minus-square@PoastRotatolink8•edit-22 years agoYou could make it run git pop until it clears the whole stash
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.
Yea but you can always
git pop
if 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 pop
until it clears the whole stashThat’s why I follow it with
git clean -fd