What is a remote in Git?
A remote is a copy of your repository kept somewhere else, usually on GitHub or GitLab. Git’s default nickname for that copy is origin.
An example
git push origin main sends your main branch to origin. If origin is your GitHub repository, your new commits appear there.
Where you’ll meet it
- Upload your code with your AI tool · Save your code on GitHub
- Upload your code with your AI tool · Save your code on GitLab
- GitHub or GitLab: which should I use? · Saving your code
- How do commits, branches, main and origin work? · Saving your code