Fork me on GitHub

VScode卸载重装后GitLab克隆报错问题

 

gitlab克隆报错:remote: HTTP Basic: Access denied;remote: You must use a personal access .....

错误:
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账号
  •   密码是令牌秘钥(第四步的秘钥)
posted @ 2019-12-20 14:53  ssh__F  阅读(506)  评论(0编辑  收藏  举报