linux - 如何在 Mac 或 Linux 中找到 git 的安装路径?

标签 linux git macos

我想在jenkins中配置git,但是在我的mac中找不到git的安装路径。你能帮帮我吗?

最佳答案

在终端执行

$ which git

产生输出

/usr/bin/git

在 Linux 上。如果你正在寻找 MAC 上的安装目录在哪里,然后你用 brew 安装了 git

brew info git

在 Debian 上

dpkg -L git

关于linux - 如何在 Mac 或 Linux 中找到 git 的安装路径?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/31128783/

相关文章:

c++ - libgcc_s.so 在同一进程中静态和动态链接是否正常?

linux - 卡利Linux "could not resolve host github.com"错误

java - 在 Eclipse 中编译为 JAR(同时存在 GiT 存储库)

python - 为什么我的容器找不到 pip 安装的包(通过 git)?

c++ - OSX - 用通过 Homebrew 安装的 4.9 替换 gcc 版本 4.2.1

macos - Emacs 和 Emacsclient 版本不同

linux - 如何在 64 位 mac 上从源代码安装 tcpslice,为 fedora 发布?

linux - 我如何在 Linux 中更新 npm?

linux - 如何在 GMT 00 :00 hr daily 后 1 小时运行 cron 作业

linux - 找到 exec 输出流