Remote Repos

Push, pull, and fetch from remote repositories

Remotes are copies of your repo hosted elsewhere (like GitHub). Sync with push, pull, and fetch.

Upload your local commits to the remote repository.

Remote (origin)
C1
C2
push
Local
C1
C2
C3
C4
Terminal
$ git push origin main
Counting objects: 6, done.
Writing objects: 100% (6/6), done.
To github.com:user/repo.git
   a1b2c3d..d4e5f6a  main -> main