Downloading the repo (project) for this lesson

The goals for this exercise are to

  1. On the GitHub website create a copy of the starter project by 'Accepting the assignment'

  2. Then copy that starter project to your personal computer by 'cloning' the repo

What you need to do to prepare for this exercise:


You'll need to start by following this link:

BIT 142 Lesson 02: https://classroom.github.com/a/msCTPfAy 

BIT 143 Lesson 01: https://classroom.github.com/a/VIOa6hu5

when arrive at that page you'll see a button which says something like "Accept this assignment". Click on that to automatically add this assignment to your GitHub account.

 

NOTE: This page is being used by several different courses and may be used in several different lessons.  Therefore, please be aware that the URLS below this line may or may not be exactly the same as the ones that you see when you do this.  Please try to get the overall idea and don't worry if the exact URLs are different.

 

Once that process is done you'll see a page with a message like "Your assignment has been created here: https://github.com/BIT-142-Classroom/bit-142-lesson-02-MikeTheGreat"  Click on that link to go to the web page on GitHub that stores your individual copy of the starter project.

Once you've done that you should look for the 'Code' button on your new page:

 

A panel should spring open and you should see a URL that starts with "https://github.com/...".  You can click the button to the right of that URL to copy it to the clipboard.

Now switch back to Visual Studio.  When you first open Visual Studio 2019 you should see a panel like this.  Click on the 'Clone a repository' option:

If you've already got Visual Studio 2019 open then you can use the File -> Clone Repository... to clone the project:

In older versions of VS you may need to find similar functionality elsewhere in VS.

 

At that point you should paste the URL that GitHub gave you into the "Repository location" box.  Make sure to also choose a folder for your new project:

 

At this point you'll need to log into GitHub:

ProTip: If your browser stores your username and password you can get it to show you the username and password.  For example Chrome can show you this by clicking on the the top-right 'triple dot' menu, then Settings, the Passwords, then filter for 'GitHub.com', then click on your account, then click on the 'eye' icon next to it.

Assuming everything went well you should see the project get copied from GitHub to your local computer.  Copying from GitHub.com to your computer is called cloning.

Congratulations!  You just cloned your first repo! (Repo is short for 'repository')

Try running the program like normal (using the Debug -> Start Without Debugging menu option).  You should see the following appear:

 

 

 

What you need to do for this exercise
  1. Create a GitHub account so that you can complete the rest of the exercises in this lesson
    1. Remember your username and password (or have your browser remember it for you)