[개발일기] Git 토큰 사용하기

송우든·2021년 8월 17일
0

Dev

목록 보기
3/18
post-thumbnail

오늘 챌린지 프로젝트를 위해 git을 사용하던 중 아래와 같은 문제가 발생하였다.

📌 문제

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: unable to access 'https://github.com/레포지토리 주소': The requested URL returned error: 403

2021년 8월 13일부터 비밀번호 인증을 지원하지 않는다고 한다. 그래서 접근 토큰을 사용하라고 한다.

💡 해결

1. 먼저, github 페이지 상단에 있는 내 계정 > Settings 를 클릭한다.

2. Developer Settings > Personal access tokens 를 클릭하여 아래 화면이 보이면 Generate new token 버튼을 클릭한다.

3. 만들어줄 token이름 및 설정을 한다.

나는 첫번째 항목만 체크하였다.

4. Generate token 버튼을 클릭한다. 그럼 다음과 같이 새로 토큰이 만들어진다. 이제 이 토큰을 복사하여 비밀번호 대신 사용한다.

문제가 바로 해결됐다!!

profile
개발 기록💻

0개의 댓글