raighne
V2EX  ›  macOS

brew git 与自带 git 问题

  •  
  •   raighne · Jun 14, 2016 · 2340 views
    This topic created in 3663 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
        1
    celadevra  
       Jun 14, 2016
    在 ~/.profile 里添一条 export PATH="/usr/local/bin":$PATH
    让系统先找到 brew 安装的 git
    FradSer
        2
    FradSer  
       Jun 14, 2016
    `brew doctor`
    cxbig
        3
    cxbig  
       Jun 14, 2016
    一楼+1
    @celadevra 强迫症的小修改,别介意哈 export PATH="/usr/local/bin:$PATH"
    zander
        4
    zander  
       Jun 14, 2016 via iPhone
    PATH
    alang
        5
    alang  
       Jun 15, 2016
    2 楼正解,检测后会提示你要配置下环境变量,优先使用 brew 的。

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