this post was submitted on 01 Jan 2026
232 points (99.6% liked)
Programmer Humor
28609 readers
1609 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
- Keep content in english
- No advertisements
- Posts must be related to programming or programmer topics
founded 2 years ago
MODERATORS
you are viewing a single comment's thread
view the rest of the comments
view the rest of the comments
Solution:
Problem:
The process of discovering best practices on how to keep a clean git history is a goddamned challenge.
--force-with-lease* ๐I didn't want to make it sound too scary ๐
Seriously, though, git really needs an option to treat
--forceas--force-with-lease. In the exceedingly rare occasion where I might want to completely overwrite a branch, it should be extra explicit by having to type something like--force-and-overwrite.--force-overwrite-everything-i-know-what-the-heck-i-am-doingjust to be sure... (/j)
At this point, it may be a good idea to throw the entire git porcelain (frontend) away and redesign it from scratch!
Yeah, I virtually only use
--forcefor moving tags around (which one could definitely argue isn't really a thing you should be doing regularly either)...