Изменить удаленный репозиторий GIT

Проверить на какой сейчас ссылается:

# git remote -v
origin  https://github.com/user/repo.git (fetch)
origin  https://github.com/user/repo.git (push)

Поменять адрес удаленного репозитория:

# git remote set-url origin https://github.com/user/repo2.git

Проверить, что применен новый адрес:

# git remote -v
origin  https://github.com/user/repo2.git (fetch)
origin  https://github.com/user/repo2.git (push)