Stage 7 — Connect to GitHub
Create an empty repository on github.com and tell your local project where it lives.
What You'll Learn
- What a remote is
- How to create an empty GitHub repository
git remote add origin <url>git remote -v
Prerequisites
- You finished Stage 6.
- You have a GitHub account. If not, sign up at github.com.
What Changes
No project files change. You create a brand-new repository on GitHub and attach it to your local repo as the remote named origin. Nothing has been uploaded yet.
Outcome
- An empty repository exists at
https://github.com/<your-username>/box-runner. git remote -vprints two lines showing the fetch and push URLs fororigin.- The webpage is unchanged.