Python for Entrepreneurs Transcripts
Chapter: Source Control and Git
Lecture: Introducing GitHub

Login or purchase this course to watch this video and the rest of the course contents.
0:01 We are taking a look at the source control concept and the implementation known as Git so far in this video course.
0:07 And now we are going to talk about GitHub. GitHub is a cloud service that allows us to store and manage our Git repositories;
0:15 GitHub is certainly not required for using git but it's often conflated with git
0:20 by new developers, because they are used hand in hand in many different projects. Let's get some clarity on the difference
0:27 between Git, the source control system and GitHub, the cloud service. Git is an implementation of the source control concept,
0:35 so it is a specific tool that we use from the command line. And it simply allows us to store and manage our code in repositories.
0:44 GitHub on the other hand is a company that provides a web application for managing Git repositories, it makes it much easier to use git
0:52 because now we have a user interface with which you create and manage Git repositories if we choose;
0:58 it hosts the remote repositories, so the great part about this is it's providing a back up service,
1:04 if our laptop that we're developing our business on suddenly crashes, we know we have an exact copy up on GitHub
1:10 and we can always just sync our new laptop and grab all the files that we were working on.
1:14 GitHub also makes it easier to work with other people, so for example, later in this course we'll talk about contractors and if you hire contractors
1:22 it's often easier just to give them access to your code through GitHub rather than them having to sync their repositories with your repositories
1:29 and just use laptops, you can use GitHub as a central location for your source code. GitHub is also going to assist us with our deployments later,
1:37 so as we go on to build our application, and we're ready to deploy it to a cloud server,
1:42 we are going to use GitHub as a bridge between the code that we have in our Git repository and the location that we're going to deploy it to.
1:50 And here is how Git works. Let's say all of my code and everything that I've been working on are in a Git repository on my local laptop.
1:58 Then, I create a repository on GitHub, I'll push all my code up there,
2:02 I'll use the "git push" command, so that I have a remote repository to push code to. So I'll say something like "git push origin master",
2:10 we'll take a look at these exact commands once we get into the Git specifics in the next section.
2:14 But for right now, this is just an overview of what we're doing. We can also pull the code down, so for example if I'm working with someone else
2:21 and they've pushed their code up to GitHub, I can then pull it down with the "git pull" command,
2:25 it makes it really easy to have a central location for all of the code that way if I'm working on it on my own,
2:31 I can simply be assured that I have a place that it's all backed up, or if I'm working with other people, it's not only backed up
2:37 but we know that we have the source of truth for our code. An important concept with GitHub is that there are both public and private repositories,
2:45 when you sign up for GitHub, which we'll do in the next video, you'll get unlimited public repositories,
2:51 now the one thing you need to really be careful of, is that your code is visible to the entire internet, anyone can see a public repository,
2:58 it's an all or nothing deal, either it's public and everyone can see it or it's private and only you can see it
3:04 along with the people that you've manually added to that project. Now personal accounts are $7 a month for the private repositories
3:12 they are also free for students, if you are a student, you should be able to get access to as many private repositories as you want just for free;
3:18 while I know $7 a month can be cost prohibitive in some cases, I highly recommend that you get a personal account for the $7 a month
3:25 when you start building your business, that way you can keep your code private.
3:29 While you are working through these videos, you can just simply use a free GitHub account, and upgrade it when you're ready to start your business.

Talk Python's Mastodon Michael Kennedy's Mastodon