Option A: Clone into a new folder
This is the simplest path when the repo already exists on GitHub.
git clone https://github.com/YOUR-USERNAME/YOUR-REPO.git
cd YOUR-REPO
GitHub setup for beginners
Use this page to go from an empty GitHub repo to a working local project that your AI coder assistant can build inside.
This is the cleanest workshop path when you want to start with a new repo and let the coding assistant build the first version.
Use the option that matches how you prefer to start.
This is the simplest path when the repo already exists on GitHub.
git clone https://github.com/YOUR-USERNAME/YOUR-REPO.git
cd YOUR-REPO
Use this if you created the local folder first and want to attach it to an empty repo afterward.
git init
git branch -M main
git remote add origin https://github.com/YOUR-USERNAME/YOUR-REPO.git
Once the app exists locally, save the first version back to GitHub.
git add .
git commit -m "Initial app build"
git push -u origin main
Use these when you want more privacy or tighter GitHub control.
If the project should not be public, change the repository visibility before you start sharing code or collaborators.
If your editor or terminal supports GitHub sign-in or GitHub CLI, use that before creating extra credentials.
If a tool specifically asks for a token, GitHub currently recommends fine-grained personal access tokens when possible.
Never paste a PAT into the prompt builder, a chat transcript, or a committed file. Treat tokens like passwords.
These links use GitHub's own documentation for the current terms and settings.