Skip to content

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