Git and GitHubLesson 18Free preview
GitHub Get Started
This lesson is part of Git · All levels
Summary
A remote is a copy of a repository that is on a server, for example on GitHub. To connect it to a local repository, create a new repository on GitHub and add the remote with the git remote add. The main remote's nickname is origin, and the first push usually uses the git push -u origin play.
Key points
- A new repository is created by using the New repository button on GitHub.
- Git remote add origin <url> associates remote with the name origin
- The remote URL can be either HTTPS or SSH
- First: git -u origin play
Full lesson
Code examples and quizzes
Full lessons, code examples, and quizzes are available to subscribers. 5 questions.