[Github] git token : personal access (깃 토큰 인증) / git push error 해결

camille·2022년 4월 11일
0
post-thumbnail

에러내용


remote: Support for password authentication was removed on August 13, 2021. Please use a personal access token instead.
remote: Please see https://github.blog/2020-12-15-token-authentication-requirements-for-git-operations/ for more information.
fatal: Authentication failed for 'https://github.com/camilleson/test1.git/'


에러원인

Support for password authentication was removed on August 13, 2021
2021년 8월 13일 부로 암호의 권한을 지원하지 않는다.


해결방법

첫번째는 ssh를 통한 깃 인증 방법
두번째는 token을 이용한 깃 인증 방법

git token 인증방법

환경: window-powershell OR linux-terminal 과 같은 bash 기반 cli
1. github 로그인 후 프로필 메뉴의 Settings 클릭!!

  1. 하단 가장아래 Developer settings

  2. Personal access tokens클릭 후 generate new token 선택

4 Note 와 만료날짜 입력 (empiration)

  1. 관련설정 전부체크

  2. generate token 선택

7.생성된 token 복사

8.제어판-사용자계정

9.window 자격증명

10. git:https://github.com 의 자격 정보를 찾아 편집 버튼을 클릭
암호에 github에서 생성한 access token 붙여넣기

0개의 댓글