File tree 1 file changed +28
-1
lines changed
1 file changed +28
-1
lines changed Original file line number Diff line number Diff line change 2
2
- Take me to [ Practice Test] ( https://kodekloud.com/courses/1085975/lectures/23244823 )
3
3
4
4
Solutions to practice test - Cherry Picking
5
- -
5
+ - Move into the directory with ` cd ` command and check the content of the given file name with ` cat ` command.
6
+ <details >
7
+ <summary>Solution</summary>
8
+
9
+ ```
10
+ $ cd story-blog
11
+ $ cat story-index.txt
12
+ ```
13
+ </details >
14
+
15
+ - 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.
16
+ <details >
17
+ <summary>Solution</summary>
18
+
19
+ ```
20
+ $ git log master --oneline
21
+
22
+ ```
23
+ </details >
24
+
25
+ - Run the following command to switch into the given branch and perform cherry-pick command.
26
+ <details >
27
+ <summary>Solution</summary>
28
+ ```
29
+ $ git checkout story/hare-and-tortoise
30
+ $ git cherry-pick < write commit hash value identified in the previous step >
31
+ ```
32
+ </details >
You can’t perform that action at this time.
0 commit comments