OSX - Installed git on OS X; What should I add to my PATH?

I just installed git 1.6.4.4 after downloading a DMG package from here.

I now have /usr/local/git. But it isn't in my PATH. So I need to add it.

My question is, should I add just /usr/local/git/bin, or do I also need to add one or more of these other directories?

$ cd /usr/local/git/
$ ls -al
total 0
drwxr-xr-x  3 joefleen  wheel  102 Sep 17 12:22 Library
drwxr-xr-x  9 root      wheel  306 Sep 27 11:09 bin
drwxr-xr-x  3 root      wheel  102 Sep 17 12:22 contrib
drwxr-xr-x  3 root      wheel  102 Sep 17 12:22 lib
drwxr-xr-x  3 root      wheel  102 Sep 17 12:22 libexec
drwxr-xr-x  6 root      wheel  204 Sep 17 12:22 share
This question and answers originated from www.stackoverflow.com
Question by (9/27/2009 6:26:51 PM)

Answer

No, all you need to add is /usr/local/git/bin. You can test this by running it directly:

/usr/local/git/bin/git

and see whether it works.

Answer by

Find More Answers
Related Topics  osx  git  version-control
Related Questions
  • Installing Git on OS X

    I am trying to install Git on Mac OS X Leopard. I'm trying to avoid the MacPorts/Fink route. I'm also trying to avoid the installer on Google because I've gotten very far on my own, but if I have to…
  • Best visual client for Git on Mac OS X?

    I'm looking for a nice, Mac OS X-like, client for Git. As an example, I use Versions for Subversion and it's exactly what I'd like to purchase for Git access. Suggestions?
  • What is the best Git GUI on OSX?

    What is the best GUI on OSX for viewing a Git repository, and (optionally) manipulating it?
  • Git index resets itself

    Every so often when I run git add . to add new files to my repo my git index will reset and think all the files in the repo have been deleted. I run these commands: git status git add . git statu…
  • Good Git repository viewer for Mac

    Can anyone recommend a good repository viewer for Git, similar to gitk, that works on Mac OS X Leopard? (I'm not saying gitk doesn't work) Of course I would like a native Mac application, but as …
  • How to view git objects and index without using git

    Using the OS X terminal, How an you view the contents of these files as plain text?
  • How should I structure my git commits?

    I'm trying to contribute to open source software for the first time, but I'm pretty inexperienced with version control systems. In particular, right now I want to make a number of changes to differe…
  • Using git with emacs

    I am trying to configure git.el. When i do git-status i can see the status buffer with changed i can also add files using 'a' but when i try to commit a file using c writing the commit log and finis…
  • Does git track resource forks?

    I ask myself this every time I replace a Photoshop .psd file that I have under version control. You can see with ls -l that PS has created a thumbnail icon in the resource fork.
  • How to keep my OSX settings under version-control?

    Coming from Linux, I've gotten in the habit of keeping my config files under a git repository. Since I got a macbook however, I've made a lot of tweaks through defaults write and preferences panels…