Information Technology Reference
In-Depth Information
Figure 7-8
.
By applying Recipe 7-4 for repository (a) you will get repository (b)
Solution
Clone the repository from Recipe 6-4 with branches:
$ cd git-recipes
$ git clone-with-branches 06-04 07-04
$ cd 07-04
and then follow the steps:
1. Create and checkout the
brave-idea
branch with
$ git checkout
-b brave-idea feature
2. Create two revisions in the
brave-idea
branch with
$ git
simple-commit b1 b2
3. Checkout the
feature
branch with
$ git checkout feature
4. Create three revisions in the
feature
branch with
$ git simple-
commit f4 f5 f6
5. Change the current branch to
master
with
$ git checkout mas-
ter