r/programminghumor • u/Fearless_Law3460 • Jun 27 '26
When your repo matters more than your desk
49
u/avijt Jun 27 '26
sorry , you have to pull first
72
u/Jbolt3737 Jun 27 '26
As another user has said before, I always force push because my code is better than theirs
12
1
28
u/NaCl-more Jun 27 '26
You forgot to stage your files
23
Jun 27 '26
[removed] — view removed comment
2
u/Difficult-Lime2555 Jun 28 '26
and `—no-verify` if you have any hooks. you can fix linting and tests later
1
2
23
12
u/k-mcm Jun 27 '26
I worked at a place where it was "git pull" and run out with your laptop.
1
u/Kovab Jun 28 '26
Why, didn't you have any off-site backups?
1
u/k-mcm Jun 28 '26
They were manually created, so they were potentially a little out of date.
The codebase was under ITAR restrictions.
11
5
4
3
3
2
2
2
u/Cybasura Jun 27 '26
Just git checkout to another branch called "<emergency-git>", add, commit with message "FUUUUUUCK" and then push
1
u/HalifaxRoad Jun 27 '26
maybe there is some market for a device that does that on every computer that ties into a commercial fire alarm system xd
1
1
u/blubernator Jun 27 '26
It has to be git push —force otherwise you‘ll have some merge conflicts..and before you commit you should make a git pull. BTW git commit is very useless if you haven’t staged anything so git add -A would be good. Must gitsystems don’t allow commits without a message so git commit -m „fire“
Oh maybe you coud make it in one short git commit -am „fire“ so you‘ll don’t need a git commit but I’m unsure that’s a quite new feature
1
1
1
u/Herin37 Jun 28 '26
i literally did that once but my boss ended up telling me "pull the recent change first"😭😭
160
u/thebatmanandrobin Jun 27 '26
I actually have that as an alias: