Ask Different is a question and answer site for power users of Apple hardware and software. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

Perhaps it was due to some conflict but now when typing git I get a blank line, it doesn't say command not found, just goes to the next line

If I press return, it exits, and does nothing

How do I reinstall / remove everything and start from scratch?

I'm a new mac user, so please don't assume I know anything obvious

share|improve this question
@christianmbrodbeck I get /usr/bin/git which is the git installed probably by railsinstaller. the git version I want (dmg downloaded from is located at /usr/local/git/bin. how do I switch the which? :) – Eran Medan Sep 9 '12 at 4:18
Which version of OS X? – Jason Salaz Sep 9 '12 at 5:22
Latest, Mountain Lion I think, I resolved the issue by the way, I'll post the answer, thank you! – Eran Medan Sep 9 '12 at 5:54

I didn't find a way to uninstall the git version that railsinstaller (allegedly) installed (I could have just removed any file that starts with git in /usr/bin but it doesn't seem right)

What I did was just change the system path, which I thought should be trivial

well, apparently there are quite a few places, here are a few from that answer (not in order)


Eventually, what helped was to change /etc/paths (had to learn a bit vim to do so)

I moved /usr/local/git/bin to be the first entry, above /usr/bin and that was about it

share|improve this answer

Your Answer


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.