본문 바로가기
이슈(오류)/해결

git - fatal: Authentication failed for 관련 해결

by Elfen Lied 2020. 12. 18.
반응형

git add 와 git commit -m " " 까지는 순조롭다가

git push origin master 에서 Username과 Password 입력하고 난뒤 오류.

 

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

 

github나 gitlab 에서 아이디 비번이 변경 되었는데 local에서 변하지 않았기 때문이다.

 

 

- 해결 방법

git config --system --unset credential.helper

코드블럭에 있는 코드를 입력하고 다시 push를 했을때 

Username과 Password를 다시 물어본다.

 

이때 github이나 gitlab 에서 바꾼 아이디 비번을 제대로 입력하면 해결 된다.

 

반응형

댓글