post
Use a rebase.
Rebase still means you have to resolve conflicts, but it can be worse because you may have to resolve conflicts across multiple commits that you're rebasing on top of a conflict.
In my experience this can be beneficial when committing and rebasing small and distinct changes.
Agreed. If your commits are reasonably structured, rebasing is far more helpful.
Although these days I usually opt for one ball-of-mud commit while developing the code, which is always fairly trivial to rebase - only one commit, can't have follow-up issues - and then I redo the commit structure from scratch as a part of preparing the code for the benefit of the reviewer.
I like that the suicide prevention number is wrong. It should still dial, but funny.
Yep, Ive hat that one.
AI tools are actually really helpful with this kind of stuff. Not with actually resolving the conflict, but with setting things up so that you can see and reason about it.
It is a duplicated repeating error because this clownshow of a website is managed by squirrels and ducks. 1-800-273-8255 would be a valid US number. Doubling 273-8255 is not, but probably vibe coded under management that should be purged by these results.
Hey! Don't insult ducks like that! This clownshow website would be about 20% better if ducks were involved.
Why not 1800-SUICIDE?
intentions unclear. Am I calling For or Against
It’s 1-800-APE-TALK
Lmao not willing to do the phone math rn, does that actually fit the numbers?
It exists too, it seems to be a support line from British Columbia, CA
Well, that’s easy to remember! 0118, 999, 881, 999, 119, 725...3.
“Proper way to commit after merge conflict” sounds like a robot trying to save a relationship after a bad sex experience
git reset --hard <commit-hash>
git push -f origin main
i didn't see anything, officer
You should be forcibly kept away from production systems...
We had an intern do this once. We changed our server config to make sure it wouldn’t accept such operations.
Never use --force. Always use --force-with-lease.
I've mistyped that a couple of times to be --force-with-leash
git push origin master --force-with-leash
Don't do that to your master.
only do that in puppygit (with consent)
TIL thats a real thing https://github.com/catpuppyapp/PuppyGit
git out --never-come-back
calls suicide hotline to ask for tech support
Keep your commits small. Merge often. That will reduce the likelihood of terrible merge conflicts.
If you’re not sharing your work with your team mates for a long time, then you’re setting yourself up for trouble.
Jujutsu (which is compatible with git) has a nice conflict resolution flow that doesn't break you workflow.
Conflicts are encoded into the commits, so that there is never a weird in between state that you have to deal with immediately before being able to do anything else.
Then you can use Jujutsu's easier history manipulation to resolve the conflict in the conflicted commits.
https://steveklabnik.github.io/jujutsu-tutorial/branching-merging-and-conflicts/conflicts.html
And you could always jj undo if you did something you didn't want to.
Been there too OP. Not a good place.
It's usually easier to find another job, it will reset your mind, and fear won't be driving you.
Or you could just commit what you have, comment "YOLO" and auto resolve conflicts and push.
I remember when similar screenshots circulated for how to tell if i am running jdk or jre, which is even more surprising.
See I wasn't really going to kill myself today, but the thought of dialing that long ass number is just to much.
in life you commit to many things. you commit to yourself, to your partner, to happiness, to legacy.
when we die, is that like a push to origin?
when we die, do our commits all go to the big repo in the sky?
is god the maintainer? when you pray is that like a bug report?
so many questions...
Little branch, as our master says: We all have our feature to accomplish. Once our feature is complete, our faith will be up to the maintainer. If you were a well behaved branch, you will be allowed to merge with the master. If you weren't so, you'll be deleted and burn In the flames of reflog.
If you git help, you could hash things out, rebase your commitments, and push forward to a better life. Then again I could just be cherry picking things.
My best friend when I fuck a commit up: https://ohshitgit.com/
git is like a minefield. stray away even a little bit from standard path and you are done for. I had git multiple times throw some obscure errors at me when trying some commands and then trying to undo/recover. how's "undo" is not a git command I don't understand.
No merges allowed. Rebase only.
Commit branch...I see your thinking of hanging yourself, here is a link to tying a noose
I don't get why people have such problems with this they even make memes about it.
Have you people never merged anything by hand or what? It's really not hard.
it's fine for simple merge conflicts but it quickly gets messy when the two branches are trying to do opposite things to the same code
it's maybe more annoying in gamedev. textures, models are binary files that can't be changed line-by-line.
So cool, I havent seen an ad like this in at least a decade. I use something called an ad blocker and also I switched to Kagi, so.... :)

all 16 comments