this post was submitted on 11 Aug 2023
298 points (98.7% liked)
Programming Humor
2676 readers
1 users here now
Related Communities !programmerhumor@lemmy.ml !programmer_humor@programming.dev !programmerhumor@kbin.social !programming_horror@programming.dev
Other Programming Communities !programming@beehaw.org !programming@programming.dev !programming@lemmy.ml !programming@kbin.social !learn_programming@programming.dev !functional_programming@programming.dev !embedded_prog@lemmy.ml
founded 1 year ago
MODERATORS
you are viewing a single comment's thread
view the rest of the comments
view the rest of the comments
only just found out how cherry picking works I love it
Nice, would you explain cherry picking to me, a dummy?
You can copy a commit that was pushed in branch 1 and paste it to branch 2
Thanks. I wonder what effect that has on the git history of branch 2?
For some reason I thought cherry picking might be the ability to take any file from any commit on any branch and copying it to the current branch.
the pasted commit will be at the top of the history for branch 2
That seems like it would cause chaos if those branches were ever merged.
Git's smart enough to realize it's the same commit and skip it.
Common workflow use of cherry-pick:
All this works without issue.