개인 저장소를 만들었지 만 터미널에서 푸시 할 수 없습니다. [중복]
Aug 19 2020
내 터미널 인 Ubuntu에서 프로젝트를 만들었습니다. 그런 다음
git init
git add .
git commit -m "fc"
그런 다음 github에 개인 저장소를 만들었습니다.
드디어,
~$ git remote add github.com/my-user-name/XXXXXXX.git ~$ git push -u origin master
하지만이 오류가 발생합니다.
fatal: 'github.com/my-user-name/XXXXXXX.git' does not appear to be a git repository
fatal: Could not read from remote repository.
Please make sure you have the correct access rights
and the repository exists.
이 컴퓨터에 SSH를 설정했습니다.
도와 주셔서 감사합니다.
답변
1 wjandrea Aug 19 2020 at 10:14
당신은 같은 프로토콜을 지정해야 https://
하거나 git://
. 프로토콜이 없으면 URL은 존재하지 않는 컴퓨터 의 파일 을 참조 합니다.
예를 들어
git remote add origin https://github.com/my-user-name/XXXXXXX.git