284
you are viewing a single comment's thread
view the rest of the comments
[-] eager_eagle@lemmy.world 24 points 10 hours ago

it has always bothered me that checkout is overloaded: it can switch branches or discard pending changes in an unrecoverable way.

so, PSA, you can replicate the safe part of checkout with git switch and the unsafe with git restore.

[-] tux0r@feddit.org 7 points 9 hours ago

Ah, I love coherent software.

[-] sik0fewl@lemmy.ca 2 points 4 hours ago

Switch and restore came later because checkout was problematic.

Just alias stuff like that, make it coherent.

this post was submitted on 09 Dec 2025
284 points (98.3% liked)

Programmer Humor

27778 readers
1555 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 2 years ago
MODERATORS