简体   繁体   English

git gui 在将 macOS Big Sur 软件更新到 11.4 后无法正常工作

[英]git gui is not working after software update to macOS Big Sur to 11.4

Whenever I try to execute the 'git gui' command on terminal it shows每当我尝试在终端上执行“git gui”命令时,它都会显示

/usr/local/git/libexec/git-core/git-gui: line 8: /usr/local/git/share/git-gui/lib/Git Gui.app/Contents/MacOS/Wish: No such file or directory
/usr/local/git/libexec/git-core/git-gui: line 8: exec: /usr/local/git/share/git-gui/lib/Git Gui.app/Contents/MacOS/Wish: cannot execute: No such file or directory

I'm facing this issue today after a software update of macOS Big Sur.在对 macOS Big Sur 进行软件更新后,我今天遇到了这个问题。 Current version is 11.4当前版本是 11.4

The problem is resolved now.现在问题已经解决了。

First, when I executed git --version it returned with git version 2.23.0 .首先,当我执行git --version时,它返回git version 2.23.0

As some solution provided by people, while uninstalling git using $ brew uninstall git .作为人们提供的一些解决方案,使用$ brew uninstall git Got another problem of No available formula or cask with the name "git".另一个问题是No available formula or cask with the name "git".

After uninstalling git using /usr/local/git/uninstall.sh .使用/usr/local/git/uninstall.sh卸载 git 后。 The git command git --version returned git version 2.24.3 (Apple Git-128) . git 命令git --version返回git version 2.24.3 (Apple Git-128)

Now using only Apple-distributed Git.现在仅使用 Apple 分发的 Git。

Conclusion, Just execute /usr/local/git/uninstall.sh结论,只需执行/usr/local/git/uninstall.sh

In my case new installation of git with overriding symlinks worked:在我的情况下,使用覆盖符号链接的 git 的新安装有效:

$ brew uninstall git
$ brew install git

# Force the link and overwrite all conflicting files
$ brew link --overwrite git

# List all files that would be deleted
$ brew link --overwrite --dry-run git

# Force the link and overwrite all conflicting files:
$ brew link --overwrite autoconf

# All files that would be deleted:
$ brew link --overwrite --dry-run autoconf

Reinstall git and git-gui.重新安装 git 和 git-gui。

$ brew uninstall git
$ brew install git
$ brew install git-gui
$ brew link git-gui

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

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