Information Technology Reference
In-Depth Information
Figure 8-14
.
Recipe 8-12 transforms the repository (a) into repository (b)
Solution
Create a new repository:
$ cd git-recipes
$ git init 08-12
$ cd 08-12
and create the repository shown in
Figure 8-14(a)
.
Use the following commands:
$ git simple-commit a b
$ git checkout -b foo-bar
$ git simple-commit x y
$ git checkout master
$ git merge --no-ff foo-bar
$ git simple-commit c
$ git revert -m 1 --no-edit HEAD
∼
$ git simple-commit d