git clone error(fatal authentication failed)

  • 오류 내용
git clone https://gitlab.com/project.git
Cloning into 'project'...
Username for 'https://gitlab.com': user@example.ai
Password for 'https://user@example.ai@gitlab.com': 
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 https://gitlab.com/help/topics/git/troubleshooting_git#error-on-git-fetch-http-basic-access-denied
fatal: Authentication failed for 'https://gitlab.com/project.git/'
  • 회사 깃랩 아이디를 구글 계정으로 가입해서 연동해서 쓰고 있었다.
  • local에서 git clone을 하려니 fatal authentication failed 권한 에러가 난 것 같다.
  • 아래와 같이 비밀번호를 한 번 세팅해주었다.

해결방법(gitlab)

  1. User Settings로 들어간다.

  2. Password 탭으로 들어간다.

  3. 비밀번호를 입력하고 Save password를 누른다.

  • 이렇게 하면 gitlab 유저명과 새로 설정한 비밀번호로 로그인도 가능하다.
profile
나 응애👶 개발자, 딥린이👨‍💻, 언어 연구자 👨‍🎓

0개의 댓글