Skip to content

Instantly share code, notes, and snippets.

@Electrica
Created February 27, 2018 16:44
Show Gist options
  • Save Electrica/01e0e20d9bf0477ea44bda5d475dae03 to your computer and use it in GitHub Desktop.
Save Electrica/01e0e20d9bf0477ea44bda5d475dae03 to your computer and use it in GitHub Desktop.
Изменение адреса репозитория
Изменить origin адрес репозитория двумя способами:
1) Первый способ задать url репозитория:
использовать команду git remote set-url origin, например:
git remote set-url origin [email protected]:vicman-wi/wi-backend.git
2) Второй способ:
Отредактировать файл .git/config: секция [remote "origin"] параметр - url.
Эти два способа идентичные. Т.е. вызов команды git remote set-url origin заменит содержимое git конфига
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment