Cloning the Utility App Assignment | My Assignment Tutor

Cloning the Utility App AssignmentRepository- Visual StudioThis guide will detail how to clone your Utility App assignment repository to your local machineusing GitHub desktop.Step 1First you need to generate the repository by clicking this link: 2Once you have clicked this link you will be taken to a page asking you to accept the assignment (youmay be asked to login to GitHub and grant access to GitHub classroom).This page will look similar to the below. Click Accept this Assignment.Step 3GitHub classroom will now generate your own unique repository for the assignment.Please wait while it completes the import process.Step 4Once imported you will be presented with a success message like the one below. Included here is aURL for your repository on GitHub keep a note of this URL.Step 5So far we have successfully created your repository on GitHub, but we need to download this toyour machine so you can write your code and then send this back to GitHub. For this we will useGitHub desktop.Open GitHub desktop and clone the repository. If you have no existing repositories you can do thisby clicking the Clone a Repository button on the opening screen.If you already have some repositories downloaded you can add another on by selecting FileClone Repository from the menu bar.Step 6You will be presented with Clone a Repository screen similar to the one below. You should look forthe repository you wish to clone from those listed. This will be named something like: CodeLab-I-20-21/utility-app-yourgithubusernameClick Choose… next to the local path field and browse to sensible location on your machine tosave the repository, eg: Documents DevOnce you have selected a folder on your machine click Clone to download the repository.Step 7You should now have a copy of the repository from Github on your local machine and GitHubdesktop should look like the below screen.Step 8Now we need to create the project file to write the code. Select Create a new project fromthe startup screen (or File New Project if already in Visual Studio).Step 9Select Empty Project from the templates and click next.Step 10Configure your project settings:In the Project Name box provide a name for the project (e.g: UtilityApp)In the Location box browse to the location where you cloned the repository to.Step 11You will be presented with the following screen (Solution Explorer may appear on the left or theright).In the solution explorer right click the Source Files folderClick Add New Item from the popup menu that appearsStep 12Add a new C++ (.cpp) file and name it main.cpp . Click Add.Step 13Your main.cpp file will initially be blank. Add the following ‘skeleton’ code ready to create the restof your program.#include using namespace std;int main(){return 0;}Step 14As you write your code Github Desktop will keep track of your changes in your main.cpp file andany other files you add to your project. You should make regular commits to ensure you can fallback to previous versions if things go wrong. To make commits write a descriptive message for thechanges you have made and click commit to master.Step 15When making commits you should also push your your work to GitHub this will make sure you havea backup of your work. Most importantly when you are happy with your final solution don’t forgetto make sure you make one final commit and push to your final code before the deadline. To pushcode to GitHub click Push Origin after making a commit.Step 16To check your code has submitted correctly go to your repository on GitHub, the URL for this willbe: can also easily get to your repository on GitHub by clicking the View on GitHub button inGitHub Desktop.


Leave a Reply

Your email address will not be published.