git remote add <name> <repository url>

Add a remote named <name> for the repository at <url>

Arguments

NameDescription
name
repository url

Options

NameDescription
-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
-fGit fetch <name> is run immediately after the remote information is set up
--tagsGit fetch <name> imports every tag from the remote repository
--no-tagsGit fetch <name> does not import tags from the remote repository
--mirror <arg>Create fetch or push mirror