Mundhra LabsGitHub, Gently
Stop 7 of 7·6 min read

In shortYou know enough to work with GitHub and to direct Claude on it. Keep the glossary and the stuck page handy.

Working with Claude: it types, you decide

Claude Code can run every Git command in this guide for you. Your job moves from typing commands to giving clear instructions and checking the result.

One change, from request to live websiteWho does each step
YouClaudeClaudeClaudeClaudeYouYouYour host AskEdit filesCommitPushOpen PRReviewMergeLive in plain wordson a branchwith a messageto GitHubexplains changespreview linkinto mainabout a minute

The amber stretch happens on a branch, so nothing reaches your live site until you merge.

What Claude can do in a repo

  • Read the whole project and explain how it's put together.
  • Create a branch, make changes, and commit them with sensible messages.
  • Push to GitHub and open a pull request that summarises what changed, using GitHub's own command-line tool, .
  • Read an error message and tell you what went wrong in plain words.
  • With the Claude GitHub app installed on a repo, you can also mention @claude in a pull request or issue comment and ask it to make a change there.

What stays your job

  • Look at the Files changed tab before merging. You don't need to read code fluently, just check nothing unexpected is in there.
  • Open the preview link, if your host gives one, and click around.
  • Press merge yourself. Keep main as the version you've approved.
  • Never paste passwords, secret keys or one-time codes into the chat or the code.

Things to say to Claude tap to copy

Push to go live

Hosting services such as Cloudflare Pages, Netlify and Vercel can watch a GitHub repo. Once connected, every change merged into main goes live by itself in about a minute. Every other branch gets its own , so you can see a change working before anyone else does. This is why main should always be in working shape.

Keep secrets out

A repo's history is forever. A password committed once stays in every copy, even if you delete the file later. Keep secrets in a file listed in .gitignore (often called .env), or in your host's settings.

If a secret ever lands in a commit, treat it as leaked. Change or revoke that key first, then clean up the repo. Some keys are designed to be public, like a website's ; check before panicking.