Manage Remotes

List All Remote

git remote -v

Add Remote

This is usually used after git init.

git remote add <name> <endpoint>


git remote add origin

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>


git remote set-url origin

Last updated