Information Technology Reference
In-Depth Information
Solution
Clone the repository from Recipe 6-1 with branches:
$ cd git-recipes
$ git clone-with-branches 06-01 06-07
$ cd 06-07
and create four new branches:
$ git branch a
$ git branch b
$ git branch c
$ git branch d
Then one by one switch to every branch and create two new commits. The com-
mands are shown in Listing 6-1 .
Listing 6-1. The commands to create the diverged branches as shown in Figure 6-9
$ git checkout master
$ git simple-commit m4 m5
$ git checkout a
$ git simple-commit a1 a2
$ git checkout b
$ git simple-commit b1 b2
$ git checkout c
$ git simple-commit c1 c2
$ git checkout d
$ git simple-commit d1 d2
$ git checkout master
 
 
Search WWH ::




Custom Search