You need to enable JavaScript to run this app.
优惠活动
大模型
产品
解决方案
定价
更多

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网页按钮克隆场景

  1. 在BitBucket仓库页面点击Clone按钮,选择Clone in SourceTree按钮
  2. 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

相关产品推荐
方舟 Agent Plan

超全模态模型 × Harness 升级,最新支持 Deepseek-V4.1-Flash、GLM-5.3 系列、Doubao-Seedream-5.0-pro、Kimi-K3 (部分), 限时 9.9 元起

最近更新时间:2026.07.14 16:15:14