본문 바로가기
카테고리 없음

[Git] PUSH 할 때 403(The requested URL returned error)

by limew 2023. 9. 8.

원격 브랜치 확인하기

git remote -v

 

기존 원격 브랜치 삭제

git remote remove origin

 

원격 브랜치 추가

git remote add origin <repository_url>

 

 

해결 방법1

원격브랜치 다시 다시 인증

git remote set-url origin https://<user-name>@github.com/<user-name>/<repository-name>.git

<user-name> , <repository-name> 을 변경

  1. PUSH 시도
  2. github 페이지에서 password 입력

 

해결 방법2

윈도우의 경우 제어판 -> 사용자 계정 -> 자격 증명 관리자로 이동하여 일반 자격 증명 목록 중 github와 관련된 모든 자격을 제거한다. 그리고 다시 처음부터 시도하여 push