SourceTree 常见问题

1 fatal: unable to access ‘XXX’: Failed to connect to www.google.com port 80 after XXX ms: Couldn’t connect to server

VPN 解决方法

  1. 打开 VPN。
  2. 在 SourceTree 中,打开 “工具” -> “选项” -> “网络” 窗口。
  3. 勾选 “使用自定义代理”。
  4. 在服务器框中输入 127.0.0.1,在端口框中输入 7890
  5. 勾选 “向 Git / Mercurial 配置文件中添加代理服务器信息”。

2 remote: Support for password authentication was removed on August 13, 2021.

  1. 在 Git Bash 中,输入并运行 git credential-helper-selector
  2. 使用 SourceTree 的命令行模式。
  3. 在 Git Credential Manager 设置中,选择 manager,并勾选 “Always use this from now on”,以便始终使用该设置。