9

Whenever I try to execute the 'git gui' command on terminal it shows

/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. Current version is 11.4

neekheel
  • 98
  • 2
  • 18
Harshad Panmand
  • 410
  • 5
  • 19

3 Answers3

6

The problem is resolved now.

First, when I executed git --version it returned with git version 2.23.0.

As some solution provided by people, while uninstalling git using $ brew uninstall git. Got another problem of No available formula or cask with the name "git".

After uninstalling git using /usr/local/git/uninstall.sh. The git command git --version returned git version 2.24.3 (Apple Git-128).

Now using only Apple-distributed Git.

Conclusion, Just execute /usr/local/git/uninstall.sh

Harshad Panmand
  • 410
  • 5
  • 19
4

Reinstall git and git-gui.

$ brew uninstall git
$ brew install git
$ brew install git-gui
$ brew link git-gui
Chris Tapay
  • 1,004
  • 10
  • 21
1

In my case new installation of git with overriding symlinks worked:

$ 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