Information Technology Reference
In-Depth Information
How It Works
The structure of the repository shown in Figure 6-12 can be obtained after the release
of a new version for your product, for example. I use the repositories structured like
this to add new independent features to frameworks. Once the stable feature of a frame-
work is released, I implement diverse features, such as authorization, database connec-
tion, development environment settings, and various extensions in separate branches.
Working this way, I can create framework distributions that will be tailored to meet
specific requirements. A distribution can contain any of the features implemented in
branches. Every feature can be turned on or off, depending on your needs. The distribu-
tion is created with merge commands: the branches that you merge will be present in
the final distribution.
The repository form Figure 6-12 created with commands from Listing 6-1 would be
displayed by the $ git log --oneline --graph --all command as in Fig-
ure 6-13 .
Figure 6-13 . The repository from Figure 6-12 as drawn by the $ git log --oneline --graph --all command
6-8. Merging multiple branches
 
 
Search WWH ::




Custom Search