The following tasks are designed to help you learn how to use branches in a git repository. Perform all tasks in the local repository on your personal computer, using only git commands run in a terminal window. To observe changes in the local repository, open a terminal window and a window with the repository contents (Windows Explorer) so that they do not overlap.
-
Create a copy of this repository (
fork) in your GitHub account. -
Display Timeline of the most recent commits to the repository and its network ordered by most recently pushed to. From the top menu, select
Insights, thenNetwork. You should see a commit and branch structure similar to the one below in your repository. -
Clone your copy of the remote
countriesrepository to your personal computer.
Note. Perform all tasks in the local repository on your personal computer, using only git commands run in a terminal window.
-
In the
mainbranch, add the following Internet domain data to thePoland.txtfile:Internet: .pl -
In the
addSouthAmericanCountriesbranch, add theBrazil.txtfile, containing the data:Capital: Brasília Language: Portuguese Population: 203,080,756 Currency: BRL -
In the
mainbranch, create a branchaddNorthAmericanCountries. In the created branch, add in the repository theNorthAmaricafolder and in it theCanada.txtfile containing the data:Capital: Ottawa Language: English and French Population: 41,288,599 Currency: CAD -
Merge all branches with the
mainbranch (do not delete branches after merging). First, merge branches that refer to the same country or continent. Then, merge them with themainbranch. If conflicts arise, consider that all information contained in the files is important and must be in the project's main branch.
-
Perform the same tasks again, but this time use Visual Studio Code.
-
To perform the tasks, first remove the
'countriesrepository from both your PC and GitHub.
