Answer
Once again, there are many ways to solve this challenge. Here is how I went about it.
Creating a new repository on GitHub
We've seen this before, so I'll do it quickly. I'll navigate to GitHub.com and fill in the usual form, making this demo program public:
Figure 5.16: Creating a new repository
Once you've created the repository, you and anyone else who wants to develop against it (and has the right permissions) can clone it locally.
Creating two feature branches with fake programmers
To do this, I'll create two directories, and clone to each. My first directory I'll call GitHub/DirA
and my second GitHub/DirB
. I will then clone into each:
Figure 5.17: Cloning the program to the local repository
Only Mateo will program in DirA
, and only Kim will program in DirB
.
Create a C# program in both DirA
and DirB
. Once done, use git status
to ensure they are both pointing to main. To be certain, make a small...