본문 바로가기

error records

Github PUSH ERROR 403 The requested URL returned error / remote: Permission .git denied to / Fetal : unable to access

반응형

 

 

5. git push origin master github 저장소로 PUSH ! 넣기

 

Push 할 때 많이 뜨는 ERROR 403

remote: Permission to ohse-emily/JavaScript.git denied to LSH7875.
fatal: unable to access 'https://github.com/ohse-emily/JavaScript.git/'
: The requested URL returned error: 403

주의할 점 * 여기서 ERROR 403이 뜬다면 이는 github에 코드를 PUSH할 때 해당 주소에 대한 권한이 없기 때문에 거절당한다. 

 

해결 방법 (1) 

1. git remote set-url origin https://github-username@github.com/github-username/github-repository-name.git

 

github-username : github에서 사용하는 username 

github-repository-name : github 코드 넣을 저장소 name

 

=> 위의 명령어를 실행하면 깃허브 repository에 대한 접근 권한 / 인증을 받으면 된다. 

 

2. git push -u origin master 

나의 repository 로 set되어서 push 만 해주면 된다. 

 

 

 

이 경우에도 안되면 

 

해결 방법 (2) 

제어판 - 사용자 계정 - 자격 증명 관리 - windows 자격 증명- 일반 자격 증명에 있는 github.com 을 삭제해주기 

 

여기까지 했는데 

ERROR: remote origin already exists. 에러가 난다면 

 

해결 방법 (3) 

 

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 사용법 / 오류 

 

blckchainetc.tistory.com/69

 

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

 

 

반응형