Learn to copy specific commits from one branch to another using cherry-pick. Perfect for applying bug fixes or features to multiple branches without merging everything.
Set up a repository that simulates a scenario where cherry-pick is useful.
mkdir -p ~/git-practice/lesson-303
cd ~/git-practice/lesson-303
git init
echo "# Bug Tracker Application" > README.md
git add README.md
git commit -m "Initial commit"
Cherry-pick is useful when you want to apply specific commits to different branches without merging entire branches. We'll simulate a real-world scenario.
Repository initialized with initial commit.