Up and Running with Git Transcripts
Chapter: Teamwork: Open source and Pull Requests
Lecture: Hurray, your PR was accepted!

Login or purchase this course to watch this video and the rest of the course contents.
0:00 Back on Windows. The outside contributor,
0:03 get a notification, you get emails about these things,
0:06 but hey, your PR was accepted.
0:08 So they go back to the project here and they say check this out.
0:11 Look, there's a, there's no open PRS but there's a closed one and this
0:15 is the one that I got.
0:16 Great. It was except it merged and Mike C Kennedy said,
0:20 great, thank you Mike C Kennedy and then the branch was deleted over on
0:27 their project. They can see that um,
0:31 there's this notification that this branch is two commits behind mike.
0:36 See Kennedy, sketchy rock paper scissors main.
0:39 So remember I said there was this flow where you create the feature branch and you
0:43 check into the other project and then you want to just sort of sync back up
0:47 So this is great. We can do it and git hub is very helpful
0:51 There's actually commands on the cli,
0:55 you can do with GIT hub and git direct,
0:58 but they git cli in with get itself to add a different origin and then fetch
1:03 it and then merge those changes and it's fine.
1:05 But I always forget how to do it and recently added this cool feature here where
1:08 you can just say fetch upstream.
1:11 Mike, c Kennedy, This version is the upstream.
1:14 So we go here and it says you're a little bit behind.
1:17 So fetch and merge, syncs it back.
1:22 That's not just for your pr that's any changes that would have been sort of behind
1:26 here. So now we have our lizard alligator changes and this branch is exactly up
1:32 to date with that. So you have exactly your copy of the repository.
1:36 The open source project is an exact copy of what the original is.
1:40 Again, in case you know,
1:41 you want to go and make other changes or just be in sync.
1:44 Of course. Pretty cool. That's our open source contribution through a pull request.
1:50 Again, you can do this back to your own project as well.
1:55 Even if you didn't fork it right,
1:56 you can do this pr workflow of you'll recall over here when we go to this
2:06 There's all sorts of extra goodies that we can apply here so we can have
2:10 a conversation, you know, multiple commits.
2:13 We have continuous integration running, we have reviewers,
2:17 signes, labels, projects, milestones,
2:19 all those things. If you just want to have that kind of conversation and structure
2:23 around a feature branch, you can do this as a PR again,
2:28 just back to your own repository.
2:30 All right, That's Git flow.
2:33 Pretty awesome. Now you can go contribute to open source projects.