this post was submitted on 28 Jul 2023
231 points (95.3% liked)

Programmer Humor

19551 readers
1017 users here now

Welcome to Programmer Humor!

This is a place where you can post jokes, memes, humor, etc. related to programming!

For sharing awful code theres also Programming Horror.

Rules

founded 1 year ago
MODERATORS
 
you are viewing a single comment's thread
view the rest of the comments
[–] joyjoy@lemmy.world 14 points 1 year ago (2 children)

Neither remove untracked files sadly.

[–] sickday@kbin.social 9 points 1 year ago (1 children)
[–] BlueBockser@programming.dev 16 points 1 year ago (2 children)

I think git clean is more appropriate. With git stash you create a stash which you then have to drop.

[–] HairHeel@programming.dev 37 points 1 year ago (1 children)

Who says you have to drop it? I've got stuff from 2007 in there somewhere.

[–] BlueBockser@programming.dev 1 points 1 year ago

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.

[–] sickday@kbin.social 9 points 1 year ago (1 children)

Yea but you can always git pop if you need any of your stashed changes

[–] Ocelot@lemmies.world 8 points 1 year ago (1 children)

i chuckled at the thought of 'git poop' being a command. I'm going to alias that to something.

[–] PoastRotato@lemmy.world 9 points 1 year ago* (last edited 1 year ago)

You could make it run git pop until it clears the whole stash

[–] slampisko@czech-lemmy.eu 1 points 1 year ago

That's why I follow it with git clean -fd