gitlab克隆报错:remote: HTTP Basic: Access denied;remote: You must use a personal access token with ‘api’ scope for Git over HTTP.

时间:2024-01-24 07:15:55
错误:
remote: HTTP Basic: Access denied
remote: You must use a personal access token with ‘api’ scope for Git over HTTP.
remote: You can generate one at https://github.com/profile/personal_access_tokens

错误原因:

You must use a personal access token with ‘api’ scope for Git over HTTP.   

即: 没有为GitLab设置以"api"为权限范围的token(可以理解为令牌)


 

GitLab如何设置个人令牌?



第一步:点击setting

 第二步:选择Access Tokens

第三步:创建token(令牌)

 第四步:保存好秘钥

 

第五步:clone项目

  账号就是你的gitlab账号

  密码是令牌秘钥(第四步的秘钥)

 

祝各位生活愉快,头发慢点落!