Homebrew error while updating git

I just got Homebrew. When I run brew doctor , I get the following output ...

 Warning: An outdated version of Git was detected in your PATH. Git 1.7.10 or newer is required to perform checkouts over HTTPS from GitHub. Please upgrade: brew upgrade git 

So, I run brew upgrade git and just get Error: git not installed

Is there an option to get more details about the error? Or do I need to update git outside of Homebrew?

Greetings

+6
source share
2 answers

Run

 $ brew install git 

You probably have an older version of Git (possibly installed with Xcode) elsewhere on your system.

+4
source

The brew upgrade git team tries to upgrade an existing Homebrew Git installation, but you don't have one.

You can use Homebrew to install the current version of Git, but you probably would be better off using a simple old installer (available at http://git-scm.com/download/mac ). This way you should not run into the confusion of $PATH or other problems that might arise from having multiple Git installations.

+2
source

Source: https://habr.com/ru/post/945260/


All Articles