2

I installed git with Homebrew and /usr/local/Cellar/git/2.31.1/bin is supposed to be the directory where the git executable is installed. BUT none of the commands are working:

rgdgr8$ /usr/local/Cellar/git/2.31.1/bin/git --version
rgdgr8$ /usr/local/Cellar/git/2.31.1/bin/git
rgdgr8$

I just don't know why.

New contributor
Ritobroto Ganguly is a new contributor to this site. Take care in asking for clarification, commenting, and answering. Check out our Code of Conduct.
3
  • 1
    Please copy text from terminal as text so all can read it – mmmmmm Apr 8 at 17:10
  • Welcome to Ask Different. Could you add the output of file /usr/local/Cellar/git/2.31.1/bin/git, otool -L /usr/local/Cellar/git/2.31.1/bin/gitand ls -l /usr/local/Cellar/git/2.31.1/bin/git? – jaume Apr 8 at 17:34
  • 1
    @RitobrotoGanguly Please make your solution an answer don't do it as an edit to the question – mmmmmm Apr 8 at 18:04
0

Solved it! I had another git folder in /usr/local/ which had symlinks in /usr/local/bin. So I had to move that git folder elsewhere and then installed and reinstalled git with homebrew.

New contributor
Ritobroto Ganguly is a new contributor to this site. Take care in asking for clarification, commenting, and answering. Check out our Code of Conduct.

Not the answer you're looking for? Browse other questions tagged .