본문 바로가기
Programming/Eclipse

[이클립스/Git] Authentication failed / Fetch operation failed. 해결방법

by 배고프당 2020. 12. 24.
728x90
 
 
이클립스에서 git으로 pull을 하려고 하니 위와 같은 경고 창이 뜨네요..
얼마 전에 push할때 아이디 / 패스워드를 다시 입력하는 창이 나왔었는데 그 때 잘못된 패스워드를 입력하고 저장을 눌러서 그 뒤로 저렇게 뜨는 거 같습니다.
 
$ git push --set-upstream origin 브랜치 이름
fatal: Authentication failed for 'http://xxx.xxx.xx.xx/Git/프로젝트이름.git/'
 
이렇게 Authentication failed 에러가 나면 크게 아래 두가지 경우가 있을 것 같네요. 
1)잘못된 user id
2)잘못된 user password
 
git config --system --unset credential.helper
 
만약 이런 에러가 난다면)
$ git config --system --unset credential.helper
error: could not lock config file C:/Program Files/Git/mingw64/etc/gitconfig: Permission denied
 
해당 명령어를 실행하려면 관리자 모드로 실행을 하여야 합니다.
 
그리고 다시 아이디와 비밀번호를 입력하시면 됩니다.
 
cmd 창에서 하는게 싫고 이클립스 화면에서 하고 싶다 하시는 분들은 여기를 따라해주세요.
 
이클립스 - Window - Preferences - General - Security - Secure Storage - Contents 탭
 
 
 
해당 계정을 선택후 삭제를 하게 되면 이클립스가 재시작 되고 이 이후에 수정된 파일을 git에 pull, push하게 되면 계정 정보를 다시 입력하는 창이 나옵니다.
 
이렇게 해결하시면 됩니다 끝!
728x90

'Programming > Eclipse' 카테고리의 다른 글

[Eclipse] .properties 한글 깨짐 처리  (0) 2019.10.31

댓글