Git · Setup and remotes

git remote set-url

Changes the URL of an existing remote.

Syntax
git remote set-url origin <url>

Example

Example
git remote set-url origin git@github.com:example/project.git

More in this group

git clone --branch git clone --depth git config alias git config core.autocrlf git config pull.rebase git init --bare git remote add git remote remove

Learn this in the course

Reference pages are the quick answer. The course explains the why, shows the full example and ends with a challenge.

Open the course