[에러노트] remote : Invalid username or password in Git

Bong2·2024년 5월 14일

에러들

목록 보기
1/1

에러

remote: Invalid username or password.
fatal: Authentication failed for 'https://github.com/bongdaehyun/SpringStudy.git/'

git bash내에서 clone, push 등을 할 때 위와 같은 오류 발생

해결 방법

임시 토큰 발급받기

Settings > Developer Setting으로 이동하여 tokens 생성

  • Note에는 토큰의 이름을 설정

  • 체크해야될 항목 : repo, workflow, adming:org, admin:public_key, gist ,user ,delete_repo

그럼 해당 토큰의 비밀번호가 생성된다.

설정 방법

https://계정명:토큰비밀번호@github.com/클론할 repo의 주소

위와 같이 선언하게 되면 정상적으로 git 명령어가 작동된다.

profile
자바 백엔드 개발자로 성장하자

0개의 댓글