this post was submitted on 21 Oct 2023
729 points (98.3% liked)

Programmer Humor

37723 readers
184 users here now

Post funny things about programming here! (Or just rant about your favourite programming language.)

Rules:

founded 6 years ago
MODERATORS
 
you are viewing a single comment's thread
view the rest of the comments
[–] [email protected] 32 points 2 years ago* (last edited 2 years ago) (11 children)

That's why I've got my IDE configured to make a commit and push for every single ctrl-s.

And one more thing, I'm not going to squash before my final PR.

EDIT:

For those of you interested, here's my gitconfig alias to help with this workflow:

[alias]
    ctrl-s-commit-push="!f() { count=$(cat count.txt); git add .; git commit -m \"$(date): commit $count\"; git push;}; f"

IMPORTANT: For those who are downvoting, yes, my entire comment is sarcasm, lol! Do not ever do anything like this in a shared repo, ever! If you actually do this in a shared repo, your access will likely be revoked the moment someone sane and competent realizes what you're doing.

Addendum: In that alias, I would've used left angle bracket instead of cat, but apparently lemmy scrubs those. I even tried the entity for it, but no go for either.

[–] [email protected] 3 points 2 years ago (4 children)

Wouldn't that mean you just have shit tons of commits? What about the commit message?

[–] [email protected] 7 points 2 years ago
[–] [email protected] 2 points 2 years ago

I'd expect the poo emoji at that point.

[–] [email protected] 2 points 2 years ago

The more the merrier. I edited my comment above to show my git alias for comments :)

[–] [email protected] 0 points 2 years ago (2 children)
[–] [email protected] 3 points 2 years ago

That sounds just awful. But ok.

[–] [email protected] 1 points 2 years ago

I meant whatever works for you, but if a coworker did that I would be fuming

load more comments (6 replies)