在 Windows 上使用 git bash 进行克隆时,遇到致命错误:遇到 UriFormatException

eri*_*icg 14 windows-7 bash clone git

我正在使用 git bash

$ git --version
git version 2.9.3.windows.1
Run Code Online (Sandbox Code Playgroud)

在 Windows 7 上。当我克隆一个 repo 时,我看到:

$ git clone https://UserName@bitbucket.mycompany.org:5555/scm/repofolder/repo.git
Cloning into 'repo'...
Fatal: UriFormatException encountered.
Fatal: UriFormatException encountered.
Fatal: UriFormatException encountered.
Fatal: UriFormatException encountered.
remote: Counting objects: 2666, done.
remote: Compressing objects: 100% (1426/1426), done.
remote: Total 2666 (delta 1378), reused 2112 (delta 1047)
Receiving objects: 100% (2666/2666), 1.53 MiB | 715.00 KiB/s, done.
Resolving deltas: 100% (1378/1378), done.
Checking connectivity... done.
Run Code Online (Sandbox Code Playgroud)

我怀疑我遇到的其他一些问题与此 UriFormatException 相关。任何人都知道为什么会发生异常以及如何解决问题?

Oom*_*Jan 14

当使用 GIT for Windows v2.9.3 并使用包含端口号的存储库 URL 时会发生这种情况。回滚到 v2.9.2 或等待 Windows 版 GIT 的固定版本。

  • Windows v2.9.2 安装程序的 GIT 将简单地进行降级。您可以在此处下载该版本 https://github.com/git-for-windows/git/releases/tag/v2.9.2.windows.1 (3认同)
  • 2.9.3(2) 现在可用,它也解决了这个问题 https://github.com/git-for-windows/git/releases/tag/v2.9.3.windows.2 (2认同)