Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

I managed to get git to stop working (Mac OSX Mountain Lion)

When I type "git" it doesn't say command not found, just shows an empty line,

Pressing enter again, exits, and does nothing (yes, I know it's weird)

typing "which git" shows a non existing folder

where do I start troubleshooting this?

I'm new to Mac and Linux (and Git) so don't assume I know anything obvious

share|improve this question
    
Any clues what you might have been doing when you "managed to get git to stop working"? Uninstalled/deleted anything? –  nickgrim Sep 10 '12 at 12:01
    
Not sure what it was, but changing the path to the git version that was installed via the official git osx package did the trick –  Eran Medan Sep 10 '12 at 15:51
    
If you've managed to solve the problem, please post an answer describing what you did, and then accept it. Welcome to Server Fault! –  Michael Hampton Sep 14 '12 at 8:14
    
@MichaelHampton thanks, posted –  Eran Medan Sep 14 '12 at 20:18
add comment

1 Answer

up vote 0 down vote accepted

Not sure what it was, but changing the path to the git version that was installed via the official git osx package did the trick (I used /etc/paths to change the order, took me a while to find it)

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.