Skip to content

Latest commit

 

History

History
33 lines (26 loc) · 926 Bytes

05-Practice-Test-Cherry-Picking.md

File metadata and controls

33 lines (26 loc) · 926 Bytes

Practice Test - Cherry Picking

Solutions to practice test - Cherry Picking

  • Move into the directory with cd command and check the content of the given file name with cat 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 >