Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

/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

like image 582
Harshad Panmand Avatar asked Jun 01 '21 07:06

Harshad Panmand


People also ask

How do I open git GUI on Mac?

Basically all you need to do is type 'open . ' to open the current directory in Finder and then click the Git button to open up git gui.

How do I install git GUI?

Step 1: Download and install the latest version of Git for Windows. Step 2: Use the default options for each step in the installation. Step 3: Remove Git Bash Desktop Icon. Step 4: Go to Start > All Programs > Git > Git GUI and make a Desktop Shortcut.

How do I run git GUI?

Windows and Linux Users To run gitk, type gitk in your command line or terminal. To run git-gui, type git gui instead.


Video Answer


3 Answers

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

like image 181
Harshad Panmand Avatar answered Oct 22 '22 02:10

Harshad Panmand


Reinstall git and git-gui.

$ brew uninstall git
$ brew install git
$ brew install git-gui
$ brew link git-gui
like image 39
Chris Tapay Avatar answered Oct 22 '22 04:10

Chris Tapay


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
like image 1
PetyoKostakov Avatar answered Oct 22 '22 02:10

PetyoKostakov