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.
Programmer Humor
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
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...
I remember when similar screenshots circulated for how to tell if i am running jdk or jre, which is even more surprising.
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.
Also rebase is usually better than merge.
No merges allowed. Rebase only.
And if you can't figure out how to rebase, I definitely don't want you solving your own merge commit!
See I wasn't really going to kill myself today, but the thought of dialing that long ass number is just to much.
“Proper way to commit after merge conflict” sounds like a robot trying to save a relationship after a bad sex experience
Holy fuck, that's a long phone number
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.
Well, that’s easy to remember! 0118, 999, 881, 999, 119, 725...3.
Did you see that ludicrious display last night??
Yes I did. Just put it over there with the rest of the fire.
The irony is, I remember it perfectly.
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)
calls suicide hotline to ask for tech support
Don't hold your breath, they're pretty mid at their actual job.
Google gives you results based on your prior search history.
It's never too late to git merge --abort
!
But abortion is murder?!?!?!?!?
🎶 every branch is sacred 🎶
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.... :)
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 prefer to just delete the whole .git and start a new repository with the new version. We are pivoting the project, new name and new repo
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.
git out --never-come-back
git never --gonna-give-you-up
git never --gonna-let-you-down
man \
git
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.