在Mac OS X上找到Git安装文件夹 [英] Locate Git installation folder on Mac OS X

查看:347
本文介绍了在Mac OS X上找到Git安装文件夹的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

来自 git主页的安装程序默认安装到 / usr / local / git 中。另请参阅此答案。但是,如果您安装XCode4,它将在 / usr / bin 中安装git版本。为了确保您可以轻松地从网站升级并使用最新的git版本,请编辑您的个人资料信息以在 / usr / bin 之前放置 / usr / local / git / bin $ PATH 中或编辑 / etc / paths 并插入 / usr / local / git / bin 作为第一项(查看这个答案)。


I'm just curious, Where Git get installed (via DMG) on Mac OS X file system?

解决方案

The installer from the git homepage installs into /usr/local/git by default. See also this answer. However, if you install XCode4, it will install a git version in /usr/bin. To ensure you can easily upgrade from the website and use the latest git version, edit either your profile information to place /usr/local/git/bin before /usr/bin in the $PATH or edit /etc/paths and insert /usr/local/git/bin as the first entry (see this answer).

这篇关于在Mac OS X上找到Git安装文件夹的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆