-
-
Notifications
You must be signed in to change notification settings - Fork 11.4k
brew doctor
Warning: How to add git to PATH?
#50500
Comments
How did you install Homebrew? What does |
I installed Homebrew with
|
@ncvv what's the output of (I know that you have installed git version 2.7.4) |
I got it! Thank you, the command /usr/local/Library/ENV/scm/git --version was enough to find the solution: The output of I had this problem with several brew files before and the /bin/sh^M indicates the wrong fileformat (I think it's Windows?). So what I did is ran
I executed these commands and it worked, brew doctor now says Your system is ready to brew. EDIT: Completely forgot to answer your initial question:
and |
the problem you have is in your git configuration. As brew doctor complain: You need to change you git global setting or you will continue to have problems. can you show us the output of or better, can you post the contents of your |
Also why is the github.user different from my username (ncvv)? This is weird, I took the username ncvv because ncw was taken (apparently by ncw) |
I suggest you to
|
@xu-cheng I did.
The output of |
|
Okay. Everything is fine then, since both commands work. Thank you all very much! |
First of all, I already posted this as a question at StackOverFlow, which can be found here. I don't want to exploit anybody and I apologize for posting this on more than one forum. I hope you understand why I did this is because I guess this is a very specific homebrew issue and here is the best place (which I should've chosen in the first place) for my problem. My Issue:
I installed Homebrew on OS X El Capitan. In the last steps of the installation I was supposed to install git with
which was fine. Now if I run 'brew doctor' this happens:
If I run 'brew install git' again, I get:
So needless to say my git version is 2.7.4. 'brew update' throws:
Issue: How do I fix my PATH so git can be found in my PATH and 'brew doctor' results in 'Your system is ready to brew'?
Additional Information:
which -a git results in:
I tried a lot of potential fixes, meanwhile I executed:
My ~/.bash_profile now looks like this:
When I try to install cask:
brew config:
Thanks in advance for any help!
The text was updated successfully, but these errors were encountered: