git remote add <name> <repository url>
Add a remote named <name> for the repository at <url>
Arguments
Name | Description |
---|
name | |
repository url | |
Options
Name | Description |
---|
-t <branch> | A refspec to track only <branch> is created |
-m <master> | A symbolic-ref refs/remotes/<name>/HEAD is set up to point at remote’s <master> branch |
-f | Git fetch <name> is run immediately after the remote information is set up |
--tags | Git fetch <name> imports every tag from the remote repository |
--no-tags | Git fetch <name> does not import tags from the remote repository |
--mirror <arg> | Create fetch or push mirror |