当前位置:   article > 正文

如何解决fatal: 无法访问 ‘https://github.com/xxx/xxx.git/‘:The requested URL returned error: 403_fatal: unencrypted http is not supported for githu

fatal: unencrypted http is not supported for github. ensure the repository r

在将本地文件上传到github远程库的时候报错

如何解决这个问题呢?

在github上创建一个令牌

首先在github主页上点击自己头像--选择Settings

其次在设置页面中点击Developer settings

选择Personal access tokens --点击tokens(classic)

点击蓝色链接Generate a personal access token--选择No expiration--密钥不过期

勾选以下选项

点击Gerated token--复制密钥--继续在终端只执行

git push -u origin main

传送成功 

声明:本文内容由网友自发贡献,不代表【wpsshop博客】立场,版权归原作者所有,本站不承担相应法律责任。如您发现有侵权的内容,请联系我们。转载请注明出处:https://www.wpsshop.cn/w/正经夜光杯/article/detail/737950
推荐阅读
相关标签
  

闽ICP备14008679号