Skip to content

Commit 52cf28e

Browse files
Update 05-Practice-Test-Cherry-Picking.md
1 parent 6bcf4ed commit 52cf28e

File tree

1 file changed

+28
-1
lines changed

1 file changed

+28
-1
lines changed

docs/05-Git-Rebasing/05-Practice-Test-Cherry-Picking.md

+28-1
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,31 @@
22
- Take me to [Practice Test](https://kodekloud.com/courses/1085975/lectures/23244823)
33

44
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>

0 commit comments

Comments
 (0)