- Take me to Practice Test
Solutions to practice test - Cherry Picking
-
Move into the directory with
cd
command and check the content of the given file name withcat
command.Solution
$ cd story-blog $ cat story-index.txt
-
Run the following command to check the hash value of the commit that contains commit message "Updated the story index file" in the master branch.
Solution
$ git log master --oneline
-
Run the following command to switch into the given branch and perform cherry-pick command.
Solution
$ git checkout story/hare-and-tortoise $ git cherry-pick < write commit hash value identified in the previous step >