저는 GIT 및 GitHub에서 완전히 새로운 사람이고 내 로컬 저장소를 GitHub 계정에 연결하는 데 다음과 같은 문제가 있습니다.
나는한다:
Andrea@Andrea-PC MINGW64 ~/Documents/WS_vari/version-control/recipes (master)
$ git remote set-url origin https://github.com/AndreaNobili/recipes.git
fatal: No such remote 'origin'
여기서 https://github.com/AndreaNobili/recipes.git 은이 저장소에 대해 GitHub에서 제공하는 https 링크입니다.
이 오류 메시지가 나타나는 이유는 무엇입니까? 원격 '원산지'가 없다는 것은 무엇을 의미 합니까? 이 문제를 어떻게 해결할 수 있습니까?
사용중인 명령 은 원격을 추가 하는 것이 아니라 기존 원격의 URL을 설정하는 것 입니다. 찾고있는 명령은
git remote add origin https://github.com/AndreaNobili/recipes.git
set-url
URL을 변경하거나 오타를 수정하려는 경우 사용할 수 있습니다.
# Note the typo in the URL:
git remote add origin https://gmail.com/AndreaNobili/recipes.git
# This command fixes the typo:
git remote set-url origin https://github.com/AndreaNobili/recipes.git
이 기사는 인터넷에서 수집됩니다. 재 인쇄 할 때 출처를 알려주십시오.
침해가 발생한 경우 연락 주시기 바랍니다[email protected] 삭제
몇 마디 만하겠습니다