Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

Required fields*

3
  • 1
    Change the order of your $PATH to search /usr/local/git/bin before /usr/bin. Commented Jan 26, 2015 at 17:24
  • Ok, but how (I'm not such an expert): for what I can see, $PATH is the union of several files, it's not stored on a single file. I think, among others, /etc/paths and /etc/paths.d/git (this last containing /usr/local/git/sbin ) Commented Jan 27, 2015 at 8:07
  • Ok, in /etc/paths I had /usr/bin /bin /usr/sbin /sbin /usr/local/bin and I added /usr/local/git/bin before all. Now it works. Thank you. Commented Jan 27, 2015 at 8:12