首页 文章

如何将/ usr / local / git / bin /添加到mac osx上的PATH? [重复]

提问于
浏览
39

可能重复:找不到git:command

如何将/ usr / local / git / bin /添加到mac osx上的PATH?我刚刚安装了git但它没有识别命令 . 它只响应“命令git not found”,我相信这可能是解决方案,但我不知道如何将它添加到终端中使用的路径 .

1 回答

  • 106

    您可以将以下内容添加到〜/ .bash_profile:

    export PATH=/usr/local/git/bin:$PATH
    

    更改将在您打开的下一个终端窗口中应用 .

相关问题