Information Technology Reference
In-Depth Information
# switch to info branch
$ git checkout info
or a single command:
$ git checkout -b info master
Both solutions will create a new branch named info , which points to the same re-
vision as branch master . The current branch in the repository is now info . You can
check it with this command:
$ git branch
The output of the above command will be the following:
doc
* info
master
The repository now looks like Figure 5-5 .
Figure 5-5 . The repository from Recipe 5-1 with a new branch named info
You can finish the recipe creating three revisions i1 , i2 , and i3 :
1. Create a new file i1.txt with $ echo i1 > i1.txt
 
 
Search WWH ::




Custom Search