Git - Origin


origin is the default name for a remote when you run git clone.

If you run git clone -o myRemote instead, then you will have myRemote/master as your default remote branch.

origin designs then often the default alias of a remote repository


As origin define a remote, all actions on origin can also be found in the remote page


When adding a remote repository, the remote URL alias is named origin.

git remote add origin


git remote remove origin


git remote show origin
* remote origin
  Fetch URL:
  Push  URL:
  HEAD branch: master
  Remote branch:
    master tracked
  Local branch configured for 'git pull':
    master merges with remote master
  Local ref configured for 'git push':
    master pushes to master (local out of date)


git remote set-url origin

Powered by ComboStrap