Git - Origin

> Code - (Programming|Computer) Language > Code Versioning > Git

1 - About

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


3 - Management

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

3.1 - Adding

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

git remote add origin

3.2 - Removing

git remote remove origin

3.3 - Show

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)

3.4 - Relocate

git remote set-url origin
code/version/git/origin.txt · Last modified: 2018/06/11 12:08 by gerardnico