Git AdvancedLesson 44Free preview
Git Cherrypick & Patch
This lesson is part of Git · All levels
Summary
Git cherry-pick applies changes from certain commits in another branch to active branches, very useful for moving hotfixes to several branch releases. File-based alternatives are available via git format-patch and git am, which move commit as a file. git apply diff without commit.
Key points
- Cherry-pick greets one commit from another branch to an active branch
- Git format-patch converts commit to file .patch
- Git am implementing patches while maintaining commit metadata
- Git apply only apply diff to the working directory
Full lesson
Code examples and quizzes
Full lessons, code examples, and quizzes are available to subscribers. 5 questions.