前往小程序,Get更优阅读体验!
立即前往
首页
学习
活动
专区
工具
TVP
发布
社区首页 >专栏 >解决 `remote: You must use a personal access token with 'api' scope for Git over H

解决 `remote: You must use a personal access token with 'api' scope for Git over H

原创
作者头像
后除
发布2023-06-17 21:40:19
4410
发布2023-06-17 21:40:19
举报
文章被收录于专栏:后除的专栏后除的专栏

背景

在家远程办公的时候 git clone 报错:

代码语言:txt
复制
remote: HTTP Basic: Access denied
remote: You must use a personal access token with 'api' scope for Git over HTTP.
Access denied
Access denied

解决方案

通过其提示的地址生成一个 Token:

代码语言:txt
复制
remote: You can generate one at https://example.com/profile/personal_access_tokens
generate
generate

然后通过命令行组合 Token 操作即可:

代码语言:txt
复制
git clone https://oauth2:${PERSONAL_ACCESS_TOKEN}@example.com/example/example.git
git clone
git clone

原创声明:本文系作者授权腾讯云开发者社区发表,未经许可,不得转载。

如有侵权,请联系 cloudcommunity@tencent.com 删除。

原创声明:本文系作者授权腾讯云开发者社区发表,未经许可,不得转载。

如有侵权,请联系 cloudcommunity@tencent.com 删除。

评论
登录后参与评论
0 条评论
热度
最新
推荐阅读
目录
  • 背景
  • 解决方案
领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档