Git origin
origin is the default name of the remote repository. git clone sets it up for you, and most guides use it when you add a remote yourself.
Git keeps a copy of each branch on origin, named like origin/main. These remote-tracking branches show where the remote was the last time you fetched.
See the branches on origin
After a clone, list the remote-tracking branches with -r:
git branch -r
origin/HEAD -> origin/main
origin/main
Show details about origin
git remote show origin
* remote origin
Fetch URL: https://github.com/w3schools-test/hello-world.git
Push URL: https://github.com/w3schools-test/hello-world.git
HEAD branch: main
Remote branch:
main tracked
Local branch configured for 'git pull':
main merges with remote main
Local ref configured for 'git push':
main pushes to main (up to date)