GtGit · Lesson 5 of 8
Remotes: push, pull & GitHub
So far everything lived on your machine. A remote is a copy of your repository on a server — backup, publish point, and the way teams share work.
'origin' is just the conventional nickname for the remote you cloned from or first added. push sends your new commits up; pull brings new commits down and merges them into your branch. If you and a teammate both pushed, you must pull (and maybe resolve a conflict) before you can push.
The collaboration workflow on top of this is the pull request (PR): push your branch to the remote, open a PR proposing it be merged into main, teammates review and comment, then it's merged on the server. PRs are a GitHub/GitLab feature rather than a git one — but they're how virtually all team development works.