我刚从here下载DMG包后安装了git 1.6.4.4。我现在有/usr/local/git
。但它不在我的PATH中。所以我需要添加它。在OS X上安装git;我应该添加到我的PATH?
我的问题是,我应该只添加/usr/local/git/bin
,还是我还需要添加一个或多个其他目录?
$ 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
我编辑了答案中的路径,以便它反映了DMG放在我的系统上的情况。我认为这就是格雷格的意思。 – Ethan 2009-09-28 15:30:21