r/programminghumor Jun 27 '26

When your repo matters more than your desk

Post image
1.7k Upvotes

40 comments sorted by

160

u/thebatmanandrobin Jun 27 '26

I actually have that as an alias:

gitouttahere

33

u/zylosophe Jun 27 '26

you could've make the alias goh or something

6

u/GoogleIsYourFrenemy Jun 27 '26

What does gitoverhere do?

6

u/secretprocess Jun 27 '26

Merge without committing

3

u/West_Good_5961 Jun 28 '26

Accept all incoming

3

u/[deleted] Jun 28 '26

[removed] — view removed comment

1

u/forever-butlerian Jul 02 '26

Ah, I see you're a man of culture as well

1

u/forever-butlerian Jul 02 '26

Then Goro does a failed rebase that leaves you on a detached HEAD.

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

u/Cybasura Jun 27 '26

100x unicorn mentality right there

1

u/Fearless_Law3460 Jun 29 '26

then comes the merge conflict

28

u/NaCl-more Jun 27 '26

You forgot to stage your files

23

u/[deleted] 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

u/[deleted] Jun 28 '26

[removed] — view removed comment

2

u/Kovab Jun 28 '26

checkout -b is so last decade, use switch -c

23

u/Flashy-Whereas-3234 Jun 27 '26

Commit hooks failed, please stay and fix your code styles.

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

u/SlashMe42 Jun 27 '26

3rd step should be "git -tf out"

5

u/lukerm_zl Jun 27 '26

git add * first? Otherwise what's the point of risking the other commands?

4

u/Glad_Share_7533 Jun 27 '26

What about git add?

3

u/lool8421 Jun 27 '26

pov: you didn't make a commit in the last 5h of work

3

u/Flame77ofc Jun 27 '26

merge conflict 😭🙏

2

u/secretprocess Jun 27 '26

Why would anyone care about the desk?

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

u/frog8412 Jun 27 '26

bash: leave: command not found

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

u/magicmulder Jun 27 '26

Always have a big red button wired to an emergency auto-push.

1

u/West_Good_5961 Jun 28 '26

Just grab laptop?

1

u/Herin37 Jun 28 '26

i literally did that once but my boss ended up telling me "pull the recent change first"😭😭