본문 바로가기
오류!

Github push 가 안된다(git Token 발급)

by /owo/ 2024. 5. 9.

git push에서 비밀번호 입력하고 나서

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.
fatal: Authentication failed for 'https://github.com/kcyeon0127/kcyeon0127.github.io.git/'

비밀번호가 아니라 토큰을 발급받아 입력해야 한다고 한다.

오른쪽 프로필-Settings 클릭
왼쪽 목록 맨 아래 Developer setting 클릭
Personla access tokens -> Tokens에 오른쪽 위 Generate new token (classic)을 선택했다

1. Token 생성

Note : 무슨 용도의 토큰인지 적기
expiration : 사용을 원하는 기간 선택
Selsct scpes : 레퍼지터리 관리 정도만 할 거라면 repo에 체크

맨 아래  Generate token 클릭

Note에 사용 목적 적기, 사용 날짜 정하기, repo에 체크하기

2. Person Access Token 확인 및 복사
토큰 생성 완료!

다시는 안보여주니까 잘 캡처해서 저장하거나 다른곳에 저장해놓기

이제 git push 를 할 수 있게 되었다