Найти в Дзене

Git: как поменять удаленную ветку

$ git remote -v origin git@github.com:OWNER/REPOSITORY.git (fetch) origin git@github.com:OWNER/REPOSITORY.git (push) Для смены ссылки на репозиторий нам понадобиться команда git remote set-url git remote set-url origin https://github.com/OWNER/REPOSITORY.git
$ git remote -v
origin git@github.com:OWNER/REPOSITORY.git (fetch)
origin git@github.com:OWNER/REPOSITORY.git (push)

Для смены ссылки на репозиторий нам понадобиться команда git remote set-url

git remote set-url origin https://github.com/OWNER/REPOSITORY.git