Sign in and connect GitHub
Full Lesson Reference
To perform real-world tasks, Claude Code requires two key integrations: your Anthropic account (to power the AI) and your GitHub account (to save, share, and deploy your work). Both are configured directly inside Claude.
Why GitHub Matters for Marketers
GitHub is cloud storage for your project files, equipped with version history and automated deployment workflows. When using Claude Code, everything you build—from marketing copy to HTML landing pages—is stored in GitHub.
- Backup: If your computer breaks, your files are safely backed up in the cloud.
- Hosting/Publishing: Pushing files to a GitHub repository can trigger auto-deployment to platforms like Vercel, putting your page live in under a minute.
- Collaboration: Easily share templates, scripts, and campaign pages with your team.
You do not need to be a developer or know Git commands. You will instruct Claude in plain English (e.g. "push my changes to GitHub"), and Claude handles the technical steps.
Step 1: Start Claude Code
Open your terminal and type:
terminalclaude
Press Enter. Because it's your first run, Claude will prompt you to authenticate.
Step 2: Sign in to Anthropic
- An authentication URL will print in your terminal and may open automatically in your browser.
- If it doesn't open, copy the URL from the terminal and paste it into your browser.
- Sign in to your Anthropic console, click Approve to authorize Claude Code, and return to the terminal.
- Your authentication credentials will save locally so you do not need to repeat this step in the future.
Step 3: Connect your GitHub Account
If you don't have a GitHub account, sign up for a free one at github.com first.
Inside your active Claude Code session, simply type:
terminalConnect my GitHub account
Claude Code will check for the GitHub CLI (gh), install it if necessary, and launch the login process.
- When asked to select a protocol (HTTPS/SSH) or sign-in options, simply reply: "Use the defaults".
- Claude will print a one-time code and direct you to activate it in your browser. Complete the browser activation, and Claude will establish the link.
To confirm both connections are working, ask Claude:
terminalcheck my connections
Exercises
- Type
claudeto start your terminal session and complete the Anthropic login. - Create a free GitHub account if you do not have one.
- Ask Claude inside the terminal:
Connect my GitHub accountand complete the browser activation flow. - Type
check my connectionsin your active Claude session to verify both Anthropic and GitHub are fully authorized.