SyntaxStudy
Sign Up
Home Git Reference git remote

git remote

command

Manages remote repository connections. origin is the conventional name for the primary remote.

Syntax

git remote [add | remove | -v]

Example

bash
git remote -v                           # list remotes
git remote add origin https://...       # add remote
git remote remove origin                # remove remote
git remote rename origin upstream       # rename
git remote set-url origin https://...   # change URL