Watch on YouTubePlayPlays from YouTube. Google's privacy policy (opens in a new tab) applies.
Adam squash-merges the motion PR on GitHub, then finds the accessibility PR blocked by merge conflicts and has Claude resolve them and squash-merge it.
What you'll learn
- PRs that branch from the latest
mainmerge cleanly; once one lands, a second PR touching the same files can conflict. - Conflicts on a shared repo are normal in teams, unlike two agents clashing in one local folder.
- Small PRs with short lifespans keep conflicts rare.
- Ask Claude to resolve conflicts: the session that made the PR, or any new session with GitHub access, can read the PR and fix them.
- For harder conflicts, ask Claude to explain in plain terms what the problem is, the risks, and how to keep both your work and the conflicting work.
- Claude can squash-merge for you; say the merge type you want.
- After the merge, the new version of the app deploys from
main.
Chapters
- 00:00Merging the first PR by hand
- 01:31When a PR has merge conflicts
- 04:07Asking Claude to fix conflicts
- 05:13How Claude resolves the conflicts
- 07:01Letting Claude squash and merge
- 00:00Okay. Well, in the previous video, we created two cloud sessions, one in the cloud to take on the accessibility pass and then another one here locally to refine our
- 00:12animations using motion of the camera.
- 00:14I have refined the work.
- 00:16I have gone through the simplification pass with the simplify command, which we learned about a couple of videos ago.
- 00:22We also did code review, and now I have two PRs which are ready to be merged.
- 00:28So I'm going to go back to GitHub here, and I'm going to get onto the pull requests tab of our repository.
- 00:37Now I could have of course merged both of these PRs using my Claude, but I'm going to merge them over here so that we can witness something that is
- 00:46going to be a part of our daily workflow.
- 00:49So first, let me start with the first PR, the PR number two.
- 00:54This is the motion pass.
- 00:56I'm going to scroll down here, and I'm going to do a squash and merge PR.
- 01:01I'm sorry, squash and merge PR, okay?
- 01:04Because that is the convention we want to keep using in this code.
- 01:07We've already gone through what these PRs are.
- 01:10I'm just going to accept the default comment message and the additional description, and I'm going to confirm and do the squash and merge.
- 01:20And that came through very cleanly because well, we have branched off of main, the most recent version.
- 01:27There was no like no code conflicts.
- 01:30And now I'm going to head over to the pull request tab again.
- 01:35I'm going to head over this tab.
- 01:37And then I'm going to scroll down, and I can see I cannot merge this PR quite yet.
- 01:43And now it seems like I cannot merge it at all because there are there are merge conflicts.
- 01:50So you might be wondering what just happened.
- 01:53Didn't the premise of the previous video and the whole work with you know sessions the cloud and sessions locally based on the fact that we don't want to have
- 02:04any conflicts. Yes, we were talking about your local conflicts on your local machine.
- 02:10But conflicts on the PR or on the remote repository is actually a very common thing and you will be running into those quite frequently when you are working with
- 02:20other engineers in large teams uh in which, you know, there are many people contributing to the codebase all at the same time.
- 02:28Of course, ideally you don't have them, you know, very often, but they do happen.
- 02:32And when they do happen, it's a perfectly normal thing.
- 02:35And thanks to Claude, resolving this conflicts is not a very difficult thing to do.
- 02:41Of course, depending on what kind of conflicts you you might be running into.
- 02:45The best way to avoid these conflicts and these conflicts coming from the fact that, you know, um the same files have been edited in the same or similar way,
- 02:56the best way to avoid this is to keep merging these small, very like quick PRs.
- 03:02So the smaller your PR is and, you know, the shorter its lifespan, the easier it's going to be for you and the rest of the team to carry on
- 03:10with your work without too many conflicts.
- 03:12But every now and then there might be a piece of work which simply takes a little bit more time or just happens to be naturally um touching, you know,
- 03:21similar areas to the ones uh one of the other engineers might have been also working on.
- 03:27So with this video we are going to look at how we can resolve these conflicts as it's really easy.
- 03:32Um I already have a cloud cloud sessions to help me with that.
- 03:36This happens to be PR number three uh with conflicts on the alert dialog, bottom sheet, and toast.
- 03:42And that makes sense.
- 03:44We have been working on these components uh and we've been adding a lot of like refined motion uh to them.
- 03:52And then at the same time this session I have been also working on accessibility improvements which also happen to be touch uh to to touch these the same components.
- 04:01So with that I'm going to head back to my Claude Code desktop.
- 04:06And simply because I still have access to this session with the the cloud the cloud Claude Code session.
- 04:14I'm just going to ask it to go back to the PR, see what the conflicts are and resolve them automatically for me.
- 04:23If I didn't have access to this session, that's not a problem.
- 04:27I can just open up a new one and assuming that Claude Code your Claude Code has access to GitHub, it can very much open any PR you want and it can
- 04:37like read the contents and and like read exactly what is wrong.
- 04:41I wanted to merge the PR, but seems like there are some merge conflicts.
- 04:50Sorry. I wanted to merge this PR, but it seems there are some merge conflicts.
- 05:04Can you help me resolve them?
- 05:11Now what Claude is going to do right now is it's going to pull up the details of the PR it has just created and it's also going to pull
- 05:20up the details of the previous PR I assume and it's going to read through the code and see what the changes are and it's going to suggest the best
- 05:29way to proceed automatically.
- 05:32And you know, sometimes depending on what kind of conflicts you might have, it might be a little bit more difficult for you to resolve these conflicts in which case
- 05:41just what I tend to do is I just ask Claude to walk me through in plain terms what exactly is the problem and you know, what are the risks
- 05:49and you know, as much as possible how can we retain my both my work and the work that is you know, conflicting with what I'm trying to bring to
- 06:00the table with this particular PR.
- 06:04Um, so, let's see.
- 06:07Um, the PR, uh, two conflicts came from the motion rebuild of these three components.
- 06:13So, I'll keep the main motions versions and reapply the accessibility and those changes on top.
- 06:19Um, okay. And it seems to be getting through these conflicts quite easily.
- 06:26No more conflict markers are left and type check and lint passed, which is great.
- 06:31Now checking the auto merge CLAUDE.md and then re-running the browser checks since the dialog now animate out before unmounting.
- 06:39Awesome. Uh, seems like most of it is already done.
- 06:42Claude is just making sure, you know, things are in order and the PR is, you know, uh, ready to be merged.
- 06:49So, let's just give it a second and hopefully, uh, in a second we should go back when we go back to, uh, this GitHub page, uh, we should be
- 06:57able to see that this PR is ready to be merged again.
- 07:01Okay, and it seems like it's done.
- 07:04Um, Claude claims all of the conflicts are now resolved and, you know, everything looks green.
- 07:10So, let me go back to the main, um, GitHub, uh, PR page and I can already see without even refreshing the page that there are no more conflicts with
- 07:19the base branch, meaning we are all looking good to go and we are good to, uh, we are good to actually, uh, merge it.
- 07:27So, with that, um, this time I think I'm just going to ask Claude to merge the PR and I'm going to because I'm doing this with Claude and I
- 07:35know that I have this convention of doing, um, of doing the squash and merge, I'm going to make sure, you know, it does exactly this kind of merge.
- 07:44Merge the PR, squash and squash and merge, please.
- 07:51Um, and with that we can see, uh, hopefully in a matter of few seconds our PR, uh, being merged.
- 07:59Um, okay, Claude confirms there are no conflicts.
- 08:03Um, squash merging now.
- 08:06Um, it's using the GitHub tools.
- 08:11And okay. And it seems like the PR is now merged.
- 08:17And uh we're looking good in general.
- 08:20Uh so going back to the code tab, everything looks good.
- 08:24Uh the new the new version of the application is currently being deployed, which means our work here is done.
- 08:32And just like that, with the help of two sessions running simultaneously, we were able to do both a basic accessibility audit as well as refine animations in our application
- 08:45all simultaneously. And with that, [snorts] I'm going to see you in the next module in which we are going to revisit this application in a year from now.
- 08:55And we are going to talk a little bit more about working within you know a real existing codebase and a team of engineers.
- 09:05So thank you so much and I'll see you there.