我正在使用 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 相关。任何人都知道为什么会发生异常以及如何解决问题?
我在这里找到了类似的问题,但为这些问题提供的答案并不能解决我的问题。
如果我做:
sudo chown <username> main.m
Run Code Online (Sandbox Code Playgroud)
我收到操作不允许的错误。
先前错误的一般解决方案是:
sudo chflags nouchg main.m
Run Code Online (Sandbox Code Playgroud)
清除锁定标志。但是,执行此操作后,我仍然无法 chown 文件。我也试过:
chflags noschg main.m
Run Code Online (Sandbox Code Playgroud)
在没有任何运气的单用户模式下 - 我收到一个操作不允许的错误。
如果有人有任何想法,我会感兴趣。
曾经有一个名为 USBProber for OS X 的有用实用程序,但我再也找不到它了。我假设它已被另一个实用程序取代,但我不确定 Apple 用什么替换了它或在哪里可以找到它。
USBProber 最后一次工作是在 OS X 10.9 上工作,我需要可以在 10.11 (El Capitan) 上工作的替代品。
USBProber 需要内核扩展才能正常运行,正如自述文件所述:
重要提示:如果安装了错误版本的 IOUSBFamily 内核扩展,系统可能会在启动时出现混乱。确认您正在将此版本的 IOUSBFamily 安装到匹配的 OS X 版本。
如果我执行git credential-osxkeychain get,它只会在应该返回有关钥匙串中存储的凭据的信息时挂起。有办法让这项工作发挥作用吗?
我使用的是 OS X 10.15.5
$ git credential-osxkeychain
usage: git credential-osxkeychain <get|store|erase>
$ git --version
git version 2.27.0
Run Code Online (Sandbox Code Playgroud)