반응형

 

git - fatal: could not read Username for 'https://gitlab.com': No such file or directory 에러 해결방법

 

 

안드로이드 스튜디오에서 commit 후 gitlab의 원격 저장소에 push를 시도했는데 아래와 같은 에러 메세지가 뜨면서  원격저장소에 push가 되지 않는 문제가 발생하여 해결한 내용을 공유하고자 합니다. 

 

[에러 메시지 ]

fatal: could not read Username for 'https://gitlab.com': No such file or directory

 

 

1. 해결방법

 

안드로이드 스튜디오에서 아래 그림과 같이 File → Settings → Version Control  → Git에서 Use credential helper 항목에 체크를 하고 다시 push 시도를 하였더니 정상적으로 원격저장소에 push가 되었습니다. 

 

Use credential helper 항목은 push할때 인증절차를 자동처리되게끔 하는 항목인데 뭐가 잘못되어 문제가 발생했는지는 나중에 확인해봐야 될것 같습니다. 

 

User credential helper 체크 위치
User credential helper

 

반응형

+ Recent posts