What is a Remote?
Understand remote repositories like GitHub and how they connect to your local machine.
A remote is just another Git repo
A remote repository in Git is a version of your project that is hosted on the Internet or a network somewhere.
It is simply another Git repository that your local repository can push to and pull from. Platforms like GitHub, GitLab, and Bitbucket provide hosting for these remote repositories.
Why it matters
**Collaboration:** Remotes allow multiple developers to work on the same project by sharing their changes.
**Backups & CI/CD:** A remote acts as an off-site backup for your local codebase, and modern web development heavily relies on remotes to trigger auto-deploying websites (like Vercel/Netlify) when code is pushed.
How it works
When you clone a repository, Git automatically creates a remote connection and names it origin by default.
This origin is just a shorthand alias for the full URL of the remote repository (e.g., https://github.com/user/repo.git), allowing you to use commands like git push origin main instead of typing the entire URL every time.
Check yourself
Pick an answer to lock it in, then read why. Getting one wrong is part of how it sticks.
Remember this
- A remote is just another Git repository hosted on a server.
- Git is the local tool; GitHub is a remote hosting service.
originis simply the default nickname for your primary remote URL.
Done with this concept?
Mark it complete to track your progress. No login needed.