Manage Remotes
List All Remote
git remote -v
Add Remote
This is usually used after
git init
.
git remote add <name> <endpoint>
Example
git remote add origin [email protected]:cytim/gitbook-linux-commands.git
Update Remote Endpoint
This allows you to switch the remote endpoint between SSH and HTTPS, or to a new endpoint.
git remote set-url <name> <endpoint>
Example:
git remote set-url origin [email protected]:cytim/gitbook-linux-commands.git
Last updated