Git and GitHubLesson 21Free preview
GitHub Set Remote
This lesson is part of Git · All levels
Summary
Once the repository is connected to GitHub, you can check, edit, and manage the remote list with the remote git command. Remote URLs can be changed, for example from HTTPS to SSH, using git remote set-url. For fork-out projects, the original repo is usually added as a second remote called upstream.
Key points
- Git remote -v displays a list of remote along with its fetch/push URL
- Git remote rename origin upstream change the name remote
- Git remote set-url origin <url> replaces the remote URL
- Git remote remove origin removing remote from local repository
Full lesson
Code examples and quizzes
Full lessons, code examples, and quizzes are available to subscribers. 5 questions.