1 00:00:00,310 --> 00:00:04,780 Because I'm on the developers team I got an email notification from Kyle. 2 00:00:04,780 --> 00:00:08,460 Now, let me show you what reviewing an open pull request looks like. 3 00:00:08,460 --> 00:00:13,560 It says, Adds a small message to the README, this PR adds a small explanation 4 00:00:13,560 --> 00:00:18,170 about who is working on this repository and any at mentions the developers team. 5 00:00:18,170 --> 00:00:19,490 That's me. 6 00:00:19,490 --> 00:00:22,510 And I wanna take a look at the Files changed, and 7 00:00:22,510 --> 00:00:25,400 I can see that there's just one line added. 8 00:00:25,400 --> 00:00:28,480 Okay, I wanna pull these changes down to my local computer so 9 00:00:28,480 --> 00:00:29,310 I can make a few edits. 10 00:00:30,450 --> 00:00:36,170 So I'll go to the Code view and I'll copy this to my keyboard and 11 00:00:36,170 --> 00:00:36,920 pull up my terminal. 12 00:00:37,980 --> 00:00:41,290 I'll type git clone and paste in the URL. 13 00:00:42,540 --> 00:00:47,265 I'll cd into the repository and 14 00:00:47,265 --> 00:00:52,168 from here I'll type git branch. 15 00:00:52,168 --> 00:00:53,790 This is weird. 16 00:00:53,790 --> 00:00:55,400 There's only a master branch. 17 00:00:55,400 --> 00:00:56,520 Why is that? 18 00:00:56,520 --> 00:01:00,050 Where is the updated-readme branch? 19 00:01:00,050 --> 00:01:02,030 This has gotten me mixed up plenty of times. 20 00:01:02,030 --> 00:01:06,860 And when we do a git clone, we don't get the remote branch locally. 21 00:01:06,860 --> 00:01:08,330 We need to check it out. 22 00:01:08,330 --> 00:01:12,611 So I'll type git branch -- remote and 23 00:01:12,611 --> 00:01:18,020 I can see the updated readme branch there. 24 00:01:18,020 --> 00:01:22,188 So I'm gonna type "git" 25 00:01:22,188 --> 00:01:27,987 checkout updated -readme. 26 00:01:27,987 --> 00:01:29,170 Cool. 27 00:01:29,170 --> 00:01:32,550 Branch updated readme set up to track remote branch. 28 00:01:32,550 --> 00:01:33,960 Da da da. 29 00:01:33,960 --> 00:01:36,780 Switched to a new branch updated README. 30 00:01:36,780 --> 00:01:39,166 Now, I'm gonna open my text editor and make a few changes. 31 00:01:46,697 --> 00:01:50,819 I'll just type 32 00:01:50,819 --> 00:01:56,210 [BLANK AUDIO] and 33 00:01:56,210 --> 00:02:00,850 we'll save. 34 00:02:00,850 --> 00:02:04,391 Now, back in the terminal let's add, commit and push up our changes. 35 00:02:09,690 --> 00:02:13,568 Clear that out, let's do a git status. 36 00:02:15,867 --> 00:02:20,636 Modified readme, cool, and 37 00:02:20,636 --> 00:02:24,258 we'll do a git add., 38 00:02:24,258 --> 00:02:30,744 git commit-m "added team members", 39 00:02:30,744 --> 00:02:34,770 one file change, cool. 40 00:02:35,860 --> 00:02:44,388 And, I do a git push origin updated-readme. 41 00:02:47,761 --> 00:02:53,328 Great, so if we go back to the website here and 42 00:02:53,328 --> 00:02:58,457 click Refresh, and go to Pull requests, 43 00:02:58,457 --> 00:03:03,436 we can see that my commit was pushed up and 44 00:03:03,436 --> 00:03:06,860 added team members. 45 00:03:06,860 --> 00:03:07,360 Great. 46 00:03:09,630 --> 00:03:13,347 Last but not least, let's let Kyle know that I've reviewed this pull request 47 00:03:13,347 --> 00:03:14,655 by giving a quick plus one. 48 00:03:25,393 --> 00:03:26,480 And I'll click Comment. 49 00:03:27,600 --> 00:03:29,587 Now, it's up to Kyle to merge the pull request. 50 00:03:31,185 --> 00:03:34,550 >> Pull requests can have a few different methods of getting merged. 51 00:03:34,550 --> 00:03:38,415 In some companies, a teammate always merges the pull requests. 52 00:03:38,415 --> 00:03:41,445 This ensures that another set of eyes are on the pull request, and 53 00:03:41,445 --> 00:03:43,865 it's always ready to go to production. 54 00:03:43,865 --> 00:03:47,845 In other companies, the person who submitted the pull request will merge it. 55 00:03:47,845 --> 00:03:50,925 In this case, I'm going to merge my own pull request. 56 00:03:50,925 --> 00:03:52,495 Let's take a look at Allison's review. 57 00:03:53,765 --> 00:03:55,185 She added a commit here. 58 00:03:57,448 --> 00:03:57,985 Okay. 59 00:03:59,620 --> 00:04:01,790 And she commented. 60 00:04:01,790 --> 00:04:05,170 Great, all I need to do now is click the Merge button. 61 00:04:08,521 --> 00:04:11,660 Now that we're done with this branch, we can safely delete it. 62 00:04:12,970 --> 00:04:16,750 If we ever need it again, we can always click this Restore branch button. 63 00:04:17,950 --> 00:04:20,550 Now let's take a look at the repository commits 64 00:04:20,550 --> 00:04:25,290 by going back to the main repository page and clicking this commits link. 65 00:04:25,290 --> 00:04:28,180 There, you can see our merge from the pull request. 66 00:04:28,180 --> 00:04:32,050 In the next stage, we'll show you how you can use this workflow with your own site 67 00:04:32,050 --> 00:04:33,370 and using GitHub Pages.