Watch on YouTubePlayPlays from YouTube. Google's privacy policy (opens in a new tab) applies.
Adam explains what pushing a branch means, then has Claude push the branch and open the course's first pull request, and shows the Vercel preview that comes with it.
What you'll learn
- "Push the branch" means sending the local branch and its commits to GitHub; until then they only exist on your Mac.
- GitHub's branch selector lists branches that have been pushed; a "had recent pushes" banner appears after a push.
- Claude can push and open a PR in one step and returns a link to it.
- The Claude app marks a session that has a PR with an icon; green means open, not merged.
- The PR page shows Claude's description, the full diff and the lines added vs removed.
- Many teams prefer small PRs (around 200–500 lines at most); AI makes PRs larger, but AI code review makes that less of a problem.
- An open PR doesn't change the live site; Vercel's bot comments with a preview deployment of the branch.
- Vercel previews open only for people logged into Vercel and on your team.
Chapters
- 00:00What pushing a branch means
- 01:28Pushing and opening the PR
- 02:54A tour of the pull request
- 04:53Vercel's preview deployment
- 00:01Okay, this is pretty exciting.
- 00:02We are about to raise our first PR.
- 00:04Again, a quick recap.
- 00:05We have implemented the my bookings view.
- 00:07We made some refinements.
- 00:09We have updated and revised our CLAUDE.md file.
- 00:12We are all set to raise the PR right now.
- 00:15I'm going to go back to my main session with Claude and for this branch, everything that there is to know is stored within this one session.
- 00:25And actually in the bar, I already have a suggestion which is exactly what I was about to say, which is just push the branch and open a PR.
- 00:33Now, before I send before I send it, let's take a pause about and like unpack what the push the branch might mean.
- 00:40So right now, we are working in this feature my bookings branch and this branch has four commits, one, two, three and four.
- 00:51This one comes from like the origin like like the main branch, but so far all of this is just living locally because we haven't pushed these changes.
- 01:00We can actually confirm this by going back to our GitHub.
- 01:04And over here, I'm going to refresh the page just to make sure.
- 01:06And on GitHub, on the repository page specifically, if I head over here and click on this main selector, this is going to give me a list of all branches
- 01:16which are pushed to this remote repository.
- 01:19And as you can see right now, it only has one, the main.
- 01:23So when I hit enter now and ask Claude to push the branch and open a PR, in a second, what's going to happen is we are going to see
- 01:33this branch showing up here and also the pull request tab is going to show up our first PR.
- 01:41So it already says here that feature my booking my bookings had recent pushes.
- 01:46I'm going to refresh it.
- 01:49And now it is indeed listed over here, meaning our work is secured.
- 01:53It's already out there.
- 01:55So in case anything happens to my computer locally, Nothing is really lost.
- 02:02And then let's see.
- 02:05Claude is now attempting to open up a pull request and once it's done, it's going to give us a link to this PR.
- 02:14So let's give it a second.
- 02:18Right. So this is like these are the connectivity internet connectivity issues which I have right now.
- 02:28It might actually take a few attempts here to open up the pull request.
- 02:33I'm just going to sit and be patient.
- 02:37Okay, and we are done.
- 02:40Our first PR is open up.
- 02:42I had to pause because you know, I had some internet connection issues.
- 02:46I ended up switching and using my hotspot, but it has finally worked.
- 02:53And there are a couple of things happening here.
- 02:55So first of all, that session on the left hand sidebar has now that fancy icon which stands for PR being connected to this particular session.
- 03:05And the fact that it's green means that it is ready to be reviewed.
- 03:09It has not been merged yet.
- 03:12Now okay let's see.
- 03:15I'm going to I'm going to now click over here to go and open up and see that PR line and it is now indeed listed over here on that
- 03:25repository page on GitHub under pull requests.
- 03:28If I now go into pull requests and I click over here, I get to see the entire PR description which Claude helped us put together.
- 03:37And also this is where we get to see like the entire code diff for this PR and how many lines of code in total we are adding versus removing.
- 03:46Again, we are adding like a new feature, so it's totally fine.
- 03:50It's totally expected for the line diff to be a little bit larger.
- 03:54Now depending on which engineering teams you're working with and like the conventions in those teams, um might asked to try create smaller PRs.
- 04:05In fact, this has been like the standard approach for a really long time um to like try to make PRs as small as possible, typically perhaps around 200 500
- 04:18lines of code at most.
- 04:20Um in the age of AI, PRs are getting, you know, larger and larger partly because of comments that Claude keep adding uh everywhere it can.
- 04:31And um but also it has become it's becoming less of an issue because um as we are about to find out uh in the next video, the code review
- 04:40which historically was something that mostly humans were doing is now also taken care uh taken care of by AI agents.
- 04:50So our PR is set.
- 04:53Um it doesn't really mean that this work is merged with our live application.
- 04:58In fact, I can go back to our Vercel deployment.
- 05:03Uh I can click over to click on the Tonik Parking course that Vercel that app.
- 05:07I'm going to refresh the page and as you can see there is nothing here about that my bookings view.
- 05:13But uh now because we have that GitHub repository connected with a Vercel project, what it means is that there is now this comment over here created automatically by a
- 05:23Vercel bot which is letting us know that Vercel has created a deployment for this PR or this branch specifically.
- 05:31And I can actually click over here on this preview button and this is going to open up um a special kind of URL with this deployment being ready for
- 05:41us to review, not just us, anyone else on our team uh before uh merging so that we can test through everything and uh make sure that, you know, not
- 05:51just the code it's not just the code that looks safe but also uh the like final experience in the browser is safe as well.
- 05:58Uh this is also by the way something that uh only people logged into Vercel uh and being part of your team in Vercel are to be able to open
- 06:07up. So it's not like this URL is available to anyone on the internet.
- 06:12So yeah, that is how working with PRs looks like now that we have GitHub and we have Vercel connected.
- 06:20In the next video, before we merge this work and before we make it appear on the, you know, main deployment, we are going to talk about a code review.
- 06:29So I'll see you in the next video.