반응형
Fatal: AggregateException encountered.
Username for 'https://github.com': xxxxxx
remote: Support for password authentication was removed on August 13, 2021.
remote: Please see https://docs.github.com/en/get-started/getting-started-with-git/about-remote-repositories#cloning-with-https-urls for information on currently recommended modes of authentication.
fatal: Authentication failed for 'https://github.com/xxxxxx/s-backend.git/'

 

윈도우에서 A아이디의 A1 레포지토리를 이용하다가 B아이디의 B1 레포지토리로 넘어와서 push하면 위와 같은 에러가 뜨는 경우가 있다.

 

많은 검색을 해보았으나 마땅히 해결을 찾지 못했고

 

자격증명관리자에서 이전 git 기록을 지우라는 이야기들이 있었지만 다 틀렸었다.

 

문제는 A1레포지토리에 push하기 위해 A아이디로 github에 로그인 했던 기록이 있어 B1레포지토리에 B아이디로 push를 하려고 하니 아래와 같이 B 아이디로는 A1에 push할 수 없다는 오류가 뜨기도 했다.

 

 remote: Permission to A1.git denied to B.
 fatal: unable to access 'A1.git/': The requested URL returned error: 403

 

해결책은?

 

git을 지우고 새로 설치하면 github 로그인 내용이 새로 나타난다.

이를 통해 해결하였고, 나머지 방법은 소용이 없었다.

반응형