raighne
V2EX  ›  macOS

brew git 与自带 git 问题

  •  
  •   raighne · Jun 14, 2016 · 2514 views
    This topic created in 3793 days ago, the information mentioned may be changed or developed.

    brew git2.90 安装在 /usr/local/Cellar 下 Apple Git 2.7.4 在 /usr/bin/git 系统默认的是 2.7.4 如何设置

    5 replies  •  2016-06-15 23:50:00 +08:00
    celadevra
    celadevra
    Jun 14, 2016
    1
    在 ~/.profile 里添一条 export PATH="/usr/local/bin":$PATH
    让系统先找到 brew 安装的 git
    FradSer
    FradSer
    Jun 14, 2016
    2
    `brew doctor`
    cxbig
    cxbig
    Jun 14, 2016
    3
    一楼+1
    @celadevra 强迫症的小修改,别介意哈 export PATH="/usr/local/bin:$PATH"
    zander
    zander
    Jun 14, 2016 via iPhone
    4
    PATH
    alang
    alang
    Jun 15, 2016
    5
    2 楼正解,检测后会提示你要配置下环境变量,优先使用 brew 的。

    我认为一切都交给 Brew 吧,他自己管理的好好的。
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Privacy   ·   Solana   ·   1364 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 29ms · UTC 22:11 · PVG 06:11 · LAX 14:11 · JFK 17:11
    ♥ Do have faith in what you're doing.