Tips

[Git] remote: HTTP Basic: Access denied. - Missing or invalid credentials. Error: Bad status code: 401

chsr 2026. 5. 20. 09:49
728x90
반응형

Missing or invalid credentials.
Error: Bad status code: 401

remote: HTTP Basic: Access denied. The provided password or token is incorrect or your account has 2FA enabled and you must use a personal access token instead of a password. See http://gitlab.adererror.com/help/topics/git/troubleshooting_git#error-on-git-fetch-http-basic-access-denied
fatal: Authentication failed for 'https://gitlab.~~~~~.git/'


 해결방법

json 설정 파일 내 terminalAuthentication: false; 추가

git.terminalAuthentication: false

또는

vscode 설정
terminalAuthentication 검색 → 해당 설정 선택 해제 → 터미널 재실행 → git fetch → gitlab Username & Password 입력

 
728x90
반응형