this post was submitted on 22 Jul 2023
278 points (97.3% liked)

Programmer Humor

20039 readers
3377 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
 
you are viewing a single comment's thread
view the rest of the comments
[–] [email protected] 6 points 2 years ago (9 children)

Sometimes there's no other option when someone merged develop into master just before a critical bug was found.

[–] [email protected] 7 points 2 years ago (8 children)

You can always revert (i.e. undo in a new commit) the faulty commit. That will keep the history. This meme is not just about pushing straight to master, it's about push --force which overwrites the remote branch completely, changing history.

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

What happens when you want to merge again? Won't it say already up to date or something cause the commits are already there?

[–] Gecko 2 points 2 years ago (1 children)

You could just rebase your develop branch to a commit before the merge and have a different commit history, or actually do it properly and have squash merges.

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

do it properly and have squash merges

If you have big features that deletes a lot of maybe important commit history.

load more comments (2 replies)
load more comments (5 replies)
load more comments (5 replies)