Claude Code for Product Designers
Lesson 20 of 49, 0 of 49 lessons completed
Sign in
Watch on YouTubePlay

Plays from YouTube. Google's privacy policy (opens in a new tab) applies.

Up next

2.6 Rules for Claude, and memory

Next lesson in 8 s

2.5 A branch and your changes

Adam shows how to read Claude's changes in the Changes panel, then has Claude put the new feature on its own branch with a first commit, and opens a git graph mod to see it.

What you'll learn

  1. The session rail shows which branch you're on; the Changes panel lists changed files, lines added and removed, and the diffs (green added, red removed, both means replaced).
  2. Commits show at the bottom of the Changes panel in the current app; no commits means nothing has been saved to history yet.
  3. Reading the diff tells you what Claude did (for example a new shared app shell that shrank the original page by 115 lines).
  4. Your file list will differ from Adam's: AI output varies with the model and the time you watch.
  5. Ask Claude to create a branch and commit in one go.
  6. Branch names often carry a scope prefix: feature/ or feat/, fix/, docs/; conventions vary between repos.
  7. The Claude app supports mods: you can ask Claude to add what the app lacks, such as a git graph.

Chapters

  1. 00:00Opening the Changes panel
  2. 01:34Reading Claude's changes
  3. 03:49A new branch and first commit
  4. 06:22Why a git graph helps
  5. 07:24Opening a git graph mod
  1. 00:00Okay, so that first implementation of the My Bookings view is ready.
  2. 00:04Before we start iterating on this, let's make sure we create that first snapshot in our version history.
  3. 00:11So let's create our first commit.
  4. 00:14So I'm going to head back to Claude Code desktop application.
  5. 00:18And first of all, I want to confirm, you know, what is our current situation.
  6. 00:22So over here in my case, uh by the way, if you don't see this sidebar, make sure you click over here on this button, so the session rail.
  7. 00:29Um and over here I can see that I'm working still on the main branch, uh which is okay for now because I'm assuming my Claude did not make any
  8. 00:38comments here directly on the main branch.
  9. 00:41And in order for me to confirm that uh what I can do is I can head over here and uh click on this Changes button that is going to
  10. 00:48bring up a different panel.
  11. 00:50And this is a very interesting panel and I encourage you to keep an eye on this one uh every now and then.
  12. 00:56Um not only this panel is going to list all of the files that Claude has changed in between turns or in between commits, but also um this one is
  13. 01:06also telling me that we do not have any comments.
  14. 01:08And how can I tell?
  15. 01:10Because I know that in the current version of the Claude Code desktop application at least, if I had any comments here, I would see them here at the bottom
  16. 01:18uh of this of the side rail, uh which by the way you can bring up by clicking over here on this um on this like hide show files button.
  17. 01:27Um this again is a very nice thing to review every now and then just to get like keep a better track of what Claude is uh changing.
  18. 01:36Um over here I can see um there is a new nav tabs component which is new.
  19. 01:40I can tell because its name is uh like the color of the text is green.
  20. 01:45Um over here we have two numbers for each file uh or like for some of them we only have one.
  21. 01:51These are just the number of lines of code which have been added and removed um in that particular change.
  22. 01:57And I can click into any file that I want.
  23. 01:59And over here, with these, you know, green portions, I get to see which lines of code are new.
  24. 02:06And the red ones show me which one have been removed.
  25. 02:09If I have, you know, a stack of red portion and a green portion, it means that, you know, something got replaced.
  26. 02:15And over here, I can see that Claude decided to make some changes to like the API of our button component.
  27. 02:24And I can also see like that this parking view, which was like initially it was the only view which we had, right?
  28. 02:31This file has actually shrunk down quite significantly.
  29. 02:36We got we're looking at 115 lines of code removed.
  30. 02:40And this is because, and this is what I got to read from the plan, Claude decided to basically create a new app shell.
  31. 02:50So like a layout component that's going to control that that is going to control like things like the padding over here or like the layout of these columns across
  32. 03:03both these pages, book a space and my bookings, which is a very nice start because I wouldn't really want to have that code being duplicated.
  33. 03:10Now, keep in mind, you know, if you are following along with me, we are working with AI, so chances are your list of files are going to be like
  34. 03:19totally different. And that is okay.
  35. 03:21Like each Claude is going to like depending on the model, but also the time of the time of the year you're watching this, you might just see different results
  36. 03:30and that is okay.
  37. 03:31The bottom line here again is that we are working like cleanly, meaning there are no commits yet.
  38. 03:38So what I'm going to do is I'm going to close this tab now.
  39. 03:41And I'm going I'm going to ask Claude to set up a branch and make the first commit before we start iterating on this.
  40. 03:49So I'm going to say, thanks, can you now set up a new branch for this work and create our first commit.
  41. 04:02And I'm going to hit send and um in a second, we should see um how when I go back to this changes panel, things will look slightly different.
  42. 04:14Uh let's see. Okay, so over here I can already see that Claude has created a new branch and we are indeed now on a different branch.
  43. 04:24Uh it's called feature/my bookings.
  44. 04:27Um by the way, the way or the reason uh Claude Claude gave this branch such a unique name with that slash is because of a commonly used convention to
  45. 04:38keep commits, but also branch names and sometimes even PR names um a bit of a like a scope description and the way you define like the scope of work
  46. 04:47and the way you define the scope of work is by using one of the keywords such as feature or just sometimes it's just feat uh when it's shorter.
  47. 04:56Um sometimes it's just about documentation, so you would see docs/something, uh feature/something, bug/some or like I'm sorry, fix/something in case the work we do is only um about like
  48. 05:09fixing any specific bugs.
  49. 05:11We are not going to dive like super deep into these different commit uh or branch naming conventions um in this course, but I guess it's a it's a good
  50. 05:20thing to remember that uh you might actually uh stumble upon different conventions in different code repositories.
  51. 05:28Um so okay, we have this uh branch created and now if I go into the changes panel, I can see the panel like or that sub panel which I
  52. 05:38um um which I mentioned a little bit later earlier with that first commit listed over here.
  53. 05:44So that is the first and so far the only commit which we have on this particular branch.
  54. 05:51And now um this panel is comparing like the all of the files that are different or have changed uh based on like the main uh like the the main
  55. 06:02branch. Um okay, so I 'm going to close this panel for now.
  56. 06:07Uh, by the way, my Claude is already asking me whether we should create a PR.
  57. 06:11No. We are far from creating a PR, so I'm not going to uh I'm not going to ask it to do so.
  58. 06:17There is one more thing that I would like to um that I would like to talk about here before wrapping things up for this video, which is even though
  59. 06:27uh we all now know how to keep track of the commits uh within the Claude desktop application, I don't really believe that is the most convenient way of uh
  60. 06:38like just keeping an eye on how Claude is handling commits or working with branches in general.
  61. 06:44Um, if we are working with uh code editor such as VS Code, these typically come with very nice, very elaborate git graphs which show this git tree that looks
  62. 06:55a little bit more familiar like one of the um slides from the beginning of this module.
  63. 07:01Um, now unfortunately, Claude desktop application does not have anything like that built in just yet, but there is something else we can do.
  64. 07:10Um, you see Claude Code desktop application allows you to create so-called mods.
  65. 07:16You can ask Claude basically to add anything you want uh into this application to make it uh work a little bit better with your custom needs.
  66. 07:26And I have happened to uh ask Claude before to create an equivalent of that git tree um view.
  67. 07:35And now I can bring it up just by going into git graph and hitting enter.
  68. 07:41And this is going to open up this brand new panel that is going to list all of my commits.
  69. 07:47And by the way, it's also going to show me uh which branch I am currently on.
  70. 07:51So, ask for me right now, like we have only two commits in this entire git repository.
  71. 07:57The first one, the initial commit which we made in at the end of the previous module, and then we have the the commit which we made just right now.
  72. 08:05Uh, and I can see this commit is right now listed under the feature my bookings branch, which is exactly what we wanted.
  73. 08:12Now, if you want to have a very similar Git graph view, I'm going to be sharing a link to this Git mode.
  74. 08:20I'm sorry, I'm I'm going to be sharing a link to this Claude mode and you can install it yourself within your Claude Code desktop application.
  75. 08:28I encourage you to do so.
  76. 08:29In fact, at least for the purpose of following along in this course, this is going to make a little bit easier for you to get a better idea of
  77. 08:38how this Git graph is going to be changing depending on how we proceed with our work later on.
  78. 08:44And with that, in the next couple of videos, we're going to take care of the refinements.
  79. 08:49We are going to be working with commits and then we're going to proceed to raising our first PRs a little bit a PR a little bit later.
  80. 08:56So really exciting things ahead of us.
  81. 08:59I'll see you in the next video.

The cheat sheet is for signed-in viewers. Inside: the lesson's prompts ready to reuse, the commands and shortcuts, useful links and what to watch out for.

Sign in to get the cheat sheet

Loading the cheat sheet…