简体   繁体   English

Git 无法访问 jarfile /usr/local/Cellar/git-credential-manager/2.0.3/libexec/git-credential-manager-2.0.3.jar

[英]Git Unable to access jarfile /usr/local/Cellar/git-credential-manager/2.0.3/libexec/git-credential-manager-2.0.3.jar

I'm not able to push anything up to DevOps using GIT.我无法使用 GIT 将任何内容推送到 DevOps。

Does anyone know how to change the jarfile path on Mac?有谁知道如何在 Mac 上更改 jarfile 路径? I have git-credential-manager-2.0.4.jar so that is why I keep seeing this error.我有 git-credential-manager-2.0.4.jar 所以这就是为什么我一直看到这个错误。

It is correct what Ziarn pointed out above. Ziarn 上面指出的是正确的。 The setting that is causing this error, is found inside your ~/.gitconfig file.导致此错误的设置位于您的 ~/.gitconfig 文件中。 (Linux / Mac). (Linux / Mac)。 Windows users can find it here: C:\ProgramData\Git\config Windows用户可以在这里找到:C:\ProgramData\Git\config

I have had the same problem and needed to update the path to my OpenJDK (new version had a different path).我遇到了同样的问题,需要更新我的 OpenJDK 的路径(新版本有不同的路径)。

Once the path was fixed, the error disappeared and my Git credentials worked again.修复路径后,错误消失,我的 Git 凭据再次起作用。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM