r/ProgrammerHumor • • 7d ago • Bravo 1

Meme stopDoingGitHubDesktop

Post image
1.6k Upvotes

390 comments sorted by

View all comments

Show parent comment

16

u/EDM115 7d ago edited 7d ago

yeah we all google those at some point, even to be sure of the order lol
despite having git especially to not mess up, we're still afraid to mess up with a wrong command

at the end of the day it comes down to habit, you do more commits than cherry picks, but the more you do those the better you get :)

7

u/Le_9k_Redditor 7d ago

I've been using git for like 15 years and I don't think I've ever needed to cherry pick anything

7

u/DiamondDramatic9551 6d ago

No? Happens regularly for me to pick stuff to merge to a release branch. 

2

u/jcsilva87 6d ago

Same here

1

u/Chamiey 6d ago

You don't use GitFlow or something like that, where each feature/bugfix has its own branch?

5

u/awesome-alpaca-ace 6d ago

I do it all the time. Better than rebase when working with stacked feature branches

1

u/KhaosPT 7d ago

Same, if anything I had to clear one cherry pick form a dude and I just ported the code by hand, it was just simpler. Anyway, now I just ask Claude so all of this is moot

1

u/Draconis_Firesworn 6d ago

it's useful in an open source environment where you have a bunch of forks and want something from a different one

1

u/TheTacoInquisition 6d ago

Cherry pick is useful. You don't NEED it, but it's saved me a headache a few times when I've accidentally committed a fews things on the wrong branch. 

5

u/g0ldenprize 7d ago

thats exactly my point, nobody knows this by heart; we all google it at some point. but when you're on the interview and you're sharing screen and you cant google or look at documentationg or anything its quite unerving

2

u/InvisibleMoonWalker 7d ago

Well, with the exception of the last point, perhaps.
I mean first two are just two commands with the same name as what's asked (git cherry-pick and git rebase respectively).

The last one is where you should show your understanding of how VCS works and how to work collaboratively, more or less. Like the exact command (which are like git merge, git add and so on) don't matter all that much in face of the way you solve conflicts. (Like understanding how the conflicts happen, what's remote, what's local, what/when you should use which, when neither and so on)

2

u/coastphase 6d ago

The first rule of resolving merge conflicts is checking your changes in before the other guy so he has to resolve them.

1

u/g0ldenprize 7d ago

see above