git - 私有 github 存储库身份验证问题
问题描述
我正在使用我的工作 Windows 10 电脑。我们有一个私有的 github 存储库。99% 的 repo 身份验证失败(无论是拉/推等)。
PS C:\Users\my_account> git pull
Logon failed, use ctrl+c to cancel basic credential prompt.
Username for 'https://github.com': git_handle
Password for 'https://git_handle@github.com':
remote: Repository not found.
fatal: Authentication failed for 'https://github.com/private.git/'
我尝试了很多东西,例如
- 不使用个人访问令牌进行身份验证,
- 设置个人访问令牌,
- 删除存储在 Web Credentials 中的先前 github 凭证
- 使用了两个不同版本的 git
- 公司提供的-v2.22
- 删除上述内容并从网上安装最新版本(v2.32.0)
奇怪的是,它偶尔会起作用,但大多数时候不起作用。有没有办法调试(获取更多日志或获取身份验证失败原因的最低详细信息)?
解决方案
推荐阅读
- javascript - 为什么这个变量没有定义?
- mysql - mysql-js如何插入带有插入id的批量记录
- node.js - GAE - Nodejs - 一个简单的 pubsub 应用程序的内存泄漏 - 超过了软私有内存限制
- c# - 对象值在 linq 中给出对象数组
- android - 无法将字节从活动发送到蓝牙接收器?
- wordpress - 每次在wordpress中加载页面时如何更改背景图像
- r - 如何为二次模型创建预测线
- python - Python xml:以十六进制形式编码数字字符引用
- python - 将 GridSearchCSV 与 KNN 一起使用时总是出现属性错误
- python - 如何更改标签内某些单词的颜色?