반응형
github에 코드를 넣을 때 자주 발생하는 에러
github remote origin already exists
4. git remote add origin [url주소] | git hub의 내 저장소, repository로 보내기 |
git hub에서 본인이 만든 저장소의 주소를 복사 해서
git remote add orgin url주소 명령어 입력하면 된다.
* 여기서 ERROR 가 많이 나온다.
git remote add origin [url주소] 를 정상적으로 입력해도 나의 github저장소에는 코드가 잘 도착하지 않았다.
-> 다시 위의 명령어를 입력하니
ERROR: remote origin already exists.
라고 나온다. 이 때 해결 방법은 기존의 했던 것을 삭제하고
1. git remote rm origin
2. git remote add origin [url주소]
3. git remote -v
: 연결상태확인
4. git push origin master
:github로 push *push: 코드를 gihub에 넣는다.
-> 그럼 성공!
git & github 관련 글
Git & Github 사용법 / 명령어 정리 / git 사용해서 github에 파일 올리기 / clone 다운받기 / 협업 시 사
(계속 업데이트 중입니다.) 먼저 할일 : 1. git 다운받기 git-scm.com/downloads Git - Downloads Downloads macOS Windows Linux/Unix Older releases are available and the Git source repository is on GitHu..
blckchainetc.tistory.com
반응형