DevOps/Git

(오류 해결) invalid username or password

신웅철 2021. 11. 15. 20:00

위와 같은 오류 발생

목차

1. gitbash 사용자 정보 삭제

2. 토큰 생성 및 입력

3. 성공✨✨

 

사용자 정보 삭제

git credential-manager uninstall

 

두번째 오류 발생

 

토큰 생성

나는 다 체크했다

 

생성이 되면 해당 토큰을 복사

 

유저 네임 입력 후 패스워드에 토큰 넣기

 

성공!

 

+ 커밋할 때마다 토큰을 매번 입력하지 않으려면 다음의 명령어를 통해 store 모드로 전환한다.

git config --global credential.helper store

 

참고자료

https://docs.github.com/en/github/authenticating-to-github/keeping-your-account-and-data-secure/creating-a-personal-access-token

 

Creating a personal access token - GitHub Docs

Note: If you use GitHub CLI to authenticate to GitHub on the command line, you can skip generating a personal access token and authenticate via the web browser instead. For more information about authenticating with GitHub CLI, see gh auth login. Personal

docs.github.com