본문 바로가기
GitHub

[GitHub] git repository 연결 시 오류 사항

by kwh_coding 2024. 3. 14.
remote: Support for password authentication was removed on August 13, 2021.
remote: Please see https://docs.github.com/get-started/getting-started-with-git/about-remote-repositories#cloning-with-https-urls for information on currently recommended modes of authentication.

 

GitHub에서는 2021년 8월 13일부터 암호 인증을 더 이상 지원하지 않습니다.

라는 뜻인 것 같다.

 

아마도 맥에서만 발생하는 푸쉬 오류로 보임.

 

문제 해결방법

1.  깃허브 웹에서 Setting 클릭

 

이때 주의사항으론 레퍼지토리에서가 아닌 프로필에서 Settings를 클릭해야 함.

 

2. 왼쪽 카테고리에서 Developer Settings 클릭

 

3. Personal access tokens 클릭

 

4. Generate new token 클릭

 

5. Token 설정

 

 

 

해당 사항 체크 후 Generate token 클릭

 

토큰이 만들어 졌다면 토큰을 복사한 후 

 

$ Username for https://github.com : 
$ Password for https://github.com/whkim98 :

 

Username에 ID

Password에는 복사한 토큰을 넣어주면 된다.

 

 

 

정 안되면

git push -u origin +main
=> 강제 푸쉬

를 통해 강제 푸쉬하는 방법도 있지만 추천하진 않는다.