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


错误: 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

错误缘由:git

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

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


 

以上问题如何解决?

  能够经过设置gitlab的我的令牌来解决api

第一步:点击setting

 第二步:选择Access Tokens

第三步:建立token(令牌)

 第四步:保存好秘钥

 

第五步:clone项目

  •   帐号就是你的gitlab帐号
  •   密码是令牌秘钥(第四步的秘钥)

 

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

相关文章
相关标签/搜索