SourceTree无法克隆BitBucket/拉取GitHub仓库,认证失败求助
SourceTree全仓库访问失败求助
本人使用SourceTree已有10年,当前Windows 11系统下无法访问任何仓库,具体问题如下:
一、BitBucket仓库克隆问题
1-1 Remote标签页克隆场景
尝试从Remote标签页选择BitBucket仓库克隆时,克隆页面弹出错误提示:
Repository Type: This is not a valid source path / URL
查看详情日志显示:
error: remote: Invalid credentials fatal: Authentication failed for 'https://bitbucket.org/xxxxxxxxxxx/xxxxxxxxxx.git/'
- 同一BitBucket仓库在另一台电脑可正常访问
- 当前电脑SourceTree中GitHub账户配置为
Authentication:Basic、Protocol:HTTPS,Basic认证虽已官方停用但此前仍可正常使用
1-2 BitBucket网页按钮克隆场景
- 在BitBucket仓库页面点击Clone按钮,选择
Clone in SourceTree按钮 - SourceTree仍弹出相同错误:
Repository Type: This is not a valid source path / URL
执行Tools > Options > Git > Git Version > Update Embedded操作后,问题有进展但未彻底解决
二、GitHub仓库拉取问题
- 目标仓库可通过GitHub Desktop正常操作
- 在SourceTree中尝试Fetch操作时,报错:
remote: Support for password authentication was removed on August 13, 2021. remote: Please see official documentation for information on currently recommended modes of authentication. fatal: Authentication failed for 'https://github.com/xxxxx/xxxxx/'
- 已生成GitHub经典个人访问令牌,并按指引完成配置,但仍登录失败:
Authenticatoin failed for GitHub with username xxxxx - please check your account settings
内容的提问来源于stack exchange,提问作者Kouichi C. Nakamura
相关产品推荐
相关产品推荐

