|
@@ -4,17 +4,12 @@ Branching means you diverge from the main line of development and continue to do
|
|
|
|
|
|
## Exercise 5 – Create branch in Git_Training project
|
|
|
|
|
|
-Go to the terminal opened in your workstation and 'cd' to the location where you cloned the project.
|
|
|
+Branches are very useful when many people are working on the same project. Such cases are premises for lots and lots of conflicts. With branches the developers have the possibility to work on separate parts of the project without causing conflicts. When one developer finishes the feature that they are working on – the branch can be merged with the main one.
|
|
|
|
|
|
-```
|
|
|
-cd Git_Training
|
|
|
-```
|
|
|
+Create the new branch checking off from “master” branch (Here the branch name is: develop).
|
|
|
|
|
|
-Create the new branch checking off from “master” branch.
|
|
|
+|||
|
|
|
+| -------- | -------- |
|
|
|
+|  |  |
|
|
|
|
|
|
-```
|
|
|
-git branch branch_name
|
|
|
-git checkout branch_name
|
|
|
-```
|
|
|
-
|
|
|
-`<branch_name>` could be the name of the language you are working on (e.g. greetings_catalan).
|
|
|
+`<branch_name>` could be the name of the PC you are working on.
|