GITHUB / LESSON 09
Working with Claude Code.
Combining Git and AI assistance

Loading the lesson…
Loading activities…
GITHUB / LESSON 09
Combining Git and AI assistance

Loading the lesson…
Loading activities…
You've crammed a LOT of Git and GitHub into your brain this module. Now for the good news... you don't have to memorize all those commands. Claude Code can handle the Git work for you!
Claude Code understands Git really well. Here's a taste of what it can do.
The easiest way to commit is to just ask. Type "commit my changes" and Claude Code checks what changed, writes a message that actually describes it and makes the commit.
If you want a shortcut, Anthropic's official plugin marketplace has a free plugin called commit-commands that adds one. Install it from inside Claude Code.
Pick where to install it (just for you is fine), and then the command shows up as this.
(Type /commit and the menu filters down to it, so you don't have to type the whole thing.)
When you run it, Claude Code goes through a lil routine.
You don't have to write the commit message yourself. Claude Code reads your changes and writes a message that actually describes them. It does NOT push, so your commit stays on your computer until you push it.
Work on your project. Edit files, add features, fix bugs, whatever you've got going on.
When you're ready to save, type /commit-commands:commit in Claude Code (or just say "commit my changes").
The plugin commits right away, then you can see the message it wrote. Don't love it? Ask Claude to reword the last commit before you push.
Say "push to GitHub" and your commit goes up. The same plugin also has /commit-commands:commit-push-pr, which commits, pushes and opens a pull request in one shot.
You can also ask Claude Code to open Pull Requests for you.
You. "Create a pull request for my changes"
Claude Code will
Here's how to ask Claude Code for the everyday Git stuff.
| What You Want | What to Say |
|---|---|
| Save your work | "Commit my changes" (or /commit-commands:commit with the plugin) |
| Upload to GitHub | "Push to GitHub" |
| Create a branch | "Create a branch called feature-name" |
| Switch branches | "Switch to the main branch" |
| Create a PR | "Create a pull request" |
| See what changed | "Show me what files I changed" |
| Undo changes | "Undo my last commit" |
Commit messages matter. They help you figure out what changed and why, especially three months from now. Claude Code writes messages that check all the right boxes.
So instead of these...
Claude Code writes these.
Even with Claude Code doing the Git work, it helps to know what's going on under the hood.
commit-commands plugin) for quick, well-written commitsYou finished the GitHub module! Here's everything you've got down now.
Next up is the Git Workflows module, where you'll pick up the moves the pros lean on, like feature branches, worktrees, forks and keeping long projects organized...