1 00:00:00,530 --> 00:00:01,650 Welcome back. 2 00:00:01,650 --> 00:00:06,680 In this course, we'll be using GitHub as a central repository for our project. 3 00:00:06,680 --> 00:00:09,500 As we build out our comic book gallery website, 4 00:00:09,500 --> 00:00:13,140 GitHub will also allow us to track the changes that we make to our code. 5 00:00:14,240 --> 00:00:17,760 In this video, we'll create a GitHub repo for our project. 6 00:00:18,790 --> 00:00:21,114 Don't worry if you aren't familiar with this process. 7 00:00:21,114 --> 00:00:23,243 To be clear, using GitHub or 8 00:00:23,243 --> 00:00:29,302 another source control system is not required to follow along with this course. 9 00:00:29,302 --> 00:00:31,160 If you want, ahead and 10 00:00:31,160 --> 00:00:35,660 skip ahead to the next video where we'll create our project in Visual Studio. 11 00:00:36,680 --> 00:00:41,180 That being said, using source control is a daily part of almost 12 00:00:41,180 --> 00:00:45,760 every developer's routine, so it would be a great thing to learn. 13 00:00:45,760 --> 00:00:48,470 See the teacher's notes for a list the Treehouse courses and 14 00:00:48,470 --> 00:00:50,700 workshops on Git and GitHub. 15 00:00:51,740 --> 00:00:54,800 Here's my profile page on github.com. 16 00:00:54,800 --> 00:01:00,000 We can click here on the Repositories tab to see a list of my repos. 17 00:01:00,000 --> 00:01:03,283 Click on the New button to create a repo. 18 00:01:03,283 --> 00:01:07,891 Let's name the repo comic-book-gallery. 19 00:01:07,891 --> 00:01:12,980 We'll keep this a public repo so that anyone can find it on GitHub. 20 00:01:12,980 --> 00:01:16,878 Check the box to initialize this repo with a readme file. 21 00:01:16,878 --> 00:01:21,290 Providing a readme file is a great way to share general information about your 22 00:01:21,290 --> 00:01:22,600 project. 23 00:01:22,600 --> 00:01:26,400 Lastly, let's add a gitignore file for Visual Studio. 24 00:01:27,710 --> 00:01:31,400 Then let's finish up by clicking the Create Repository button. 25 00:01:32,840 --> 00:01:36,600 Now let's clone our repo to our local computer. 26 00:01:36,600 --> 00:01:39,040 There are a number of ways to do this. 27 00:01:39,040 --> 00:01:42,150 I'm going to use the GitHub extension for Visual Studio. 28 00:01:42,150 --> 00:01:45,400 But you can use whichever method you're comfortable with. 29 00:01:45,400 --> 00:01:48,268 Let's switch to the Team Explorer panel and 30 00:01:48,268 --> 00:01:51,846 click the little plug icon to manage our connections. 31 00:01:51,846 --> 00:01:53,243 To give myself more room, 32 00:01:53,243 --> 00:01:57,620 I'm going to collapse the Properties panel by clicking the pin icon. 33 00:01:57,620 --> 00:02:01,060 Now we can see the list of available source control providers. 34 00:02:01,060 --> 00:02:03,140 If you don't see GitHub listed here, 35 00:02:03,140 --> 00:02:06,760 you'll need to install the GitHub extension for Visual Studio. 36 00:02:06,760 --> 00:02:07,980 See the teacher's notes for 37 00:02:07,980 --> 00:02:12,280 a link to a Treehouse workshop that will walk you through that process. 38 00:02:12,280 --> 00:02:18,417 In the GitHub section we can see Clone, Create and Sign out links. 39 00:02:18,417 --> 00:02:22,240 That tells us that I'm already connected to my GitHub account. 40 00:02:22,240 --> 00:02:25,990 If you aren't signed in, you'll see a Connect link instead. 41 00:02:25,990 --> 00:02:30,120 If you need to, go ahead and pause the video and sign in now. 42 00:02:30,120 --> 00:02:32,540 Okay let's clone our repo. 43 00:02:32,540 --> 00:02:35,730 Click the Clone link, which will open up 44 00:02:35,730 --> 00:02:40,525 a dialog displaying a list of remote repos that my account has access to. 45 00:02:40,525 --> 00:02:44,920 Let's search for our repo using the field here at the top of the dialog. 46 00:02:44,920 --> 00:02:46,020 Here it is. 47 00:02:46,020 --> 00:02:48,710 Go ahead and click on it to select it, and 48 00:02:48,710 --> 00:02:50,955 then click the Clone button at the bottom of the dialog. 49 00:02:52,080 --> 00:02:54,095 Great, now that we've cloned our repo, 50 00:02:54,095 --> 00:02:58,070 we're ready to create our project, which is what we'll do in the next video.