g1it help remoteCode: (dl )1
git remote [-v | --verbose]
git remote add [-t <branch>] [-m <master>] [-f] [--mirror] <name> <url>
With no arguments, shows a list of existing remotes. Several subcommands are available
to perform operations on the remotes.
Adds a remote named <name> for the repository at <url>. The command git fetch
<name> can then be used to create and update remote-tracking branches
With -f option, git fetch <name> is run immediately after the remote information is
With -t <branch> option, instead of the default glob refspec for the remote to
track all branches under $GIT_DIR/remotes/<name>/, a refspec to track only <branch>
is created. You can give more than one -t <branch> to track multiple branches
without grabbing all branches.
With -m <master> option, $GIT_DIR/remotes/<name>/HEAD is set up to point at
remote?s <master> branch instead of whatever branch the HEAD at the remote
repository actually points at.
In mirror mode, enabled with --mirror, the refs will not be stored in the
refs/remotes/ namespace, but in refs/heads/. This option only makes sense in bare
repositories. If a remote uses mirror mode, furthermore, git push will always
behave as if --mirror was passed.