GitHubLesson 16 of 23
Connect Your Local Project to GitHub
2 min readClaude Code for DesignersUpdated Feb 18, 2026
Three git commands to initialize your folder, three more to push it to GitHub. Follow them in order and your prototype will be in the cloud by the end of the lesson.
Connect Your Local Project to GitHub
Open Terminal (Not Claude Code)
You should be in your project folder. Check with:
Terminal
pwdYou should see something like .../my-first-prototype
Initialize Git
Run these commands one by one:
Terminal
git init
git add .
git commit -m "Initial prototype created with Claude Code"Connect to GitHub
Copy the commands from GitHub's instructions. They'll look like:
Terminal
git branch -M main
git remote add origin https://github.com/YOUR-USERNAME/my-first-prototype.git
git push -u origin mainCheck GitHub
Refresh your GitHub repo page. Your files should now be there!
Local project linked to GitHub
- Initialized git in your project folder
- Made your first commit
- Connected the local repo to your GitHub remote and pushed
Your prototype is in the cloud. Next: how to keep it there as you make changes.