Up and Running with Git Transcripts
Chapter: Teamwork: Open source and Pull Requests
Lecture: Forking and cloning an open repository

Login or purchase this course to watch this video and the rest of the course contents.
0:00 Our story of contributing to open source starts from Windows developer over here.
0:06 Just so it's not me on my Mac.
0:08 Now, this developer is just cruising around GIT hub and they've come across what has
0:13 got to be a pretty amazing project.
0:15 This sketchy rock paper scissors and they saw this and they thought,
0:19 you know what I am psyched to contribute to this.
0:23 Let's let me get going. So one thing they might do is they might just
0:26 go, okay, this is cool,
0:27 I'm going to start it. So it's basically bookmarked,
0:30 but that doesn't allow them to contribute to it.
0:33 They could watch it as well,
0:35 which will give you notifications of changes.
0:37 Honestly, do that sparingly because you'll get a lot of notifications you might not want
0:41 But if they want to contribute it or even just make sure they have their
0:46 own absolute dedicated copy, they can come over here and click fork now,
0:51 Really, this is me, you can see there's my icon or profile image and
0:55 this is me. But because I also have an organization on github under talk python
1:00 I can fork it normally you can't fork your own repositories,
1:04 but let's just imagine my user name is talk python.
1:08 The project is owned by mike.
1:10 C Kennedy and those are unrelated.
1:12 Okay, so I'm gonna go over here,
1:14 I can change its name, but you're probably better off to just leave it.
1:17 Let's hit create your fork. I said,
1:20 hold on, just a minute,
1:21 we're creating it. And by the way,
1:22 if you want to add some collaborators,
1:24 go ahead. That's fantastic. So now,
1:27 maybe I want to make some changes to it.
1:29 Let's go and check it out over here and we could do this several ways.
1:33 Of course. Let's do it with source tree over here to file and say clone
1:37 Give it the URL
1:40 The destination path. Let's put it on desktop.
1:44 Just for now. We're going to clone.
1:47 It looks fine to me. Let's roll down and hit the button and look at
1:54 this. We have all of the history,
1:56 we have everything that you saw here.
1:57 We've got the different branching workflows.
2:00 Remember those different workflows Here? We've got our feature branch from 1 - 1 1
2:05 We've got our feature branch over here that we did.
2:11 And this is sort of the pay down debt bump over here,
2:14 right, right there and so on.
2:17 Fantastic. So it looks like we're good to go and this is on our account
2:21 and this is on the talk python account.
2:24 Remember that's my user. So github.com/talk python.
2:27 I can do whatever I want to this repository.
2:29 It won't affect the Mike C Kennedy one.
2:32 So we forked the repository and we've cloned it locally and for all intents and purposes
2:38 this is our repository and we can do what we want.
2:41 So we'll be ready to make that feature branch change or you know, other changes as of you see it.