<LEARN/>
← Git & GitHub

// lesson 7 of 9

GitHub and remotes

Put your repository online and keep it in sync.

// 1. read the lesson

Create a free account at github.com and make a new, empty repository. GitHub shows you its address. Connect your local repo to it, calling it origin:

git remote add origin https://github.com/ama/my-site.git
git push -u origin main

git push uploads your commits. git pull downloads commits that others (or you, on another computer) pushed:

git pull

To copy someone else's project to your computer, use git clone followed by its address.

Written by the LEARN team.

Sign in to take the lesson test.

Your answers and code are checked and saved to your account.

Sign in