-2

我是 GitHub 世界的新手,我需要帮助!!

我从github 源安装了 git 1.8, 但是当在我的控制台中按 git 时说

git credential-osxkeychain <get|store|erase>

我尝试修改

./bash_profile 导出 PATH=$PATH:/usr/local/git/bin/

但没有醒来,请问有什么想法吗?

I use Mac OSX Mountain Lion 10.8.2

4

2 回答 2

2

Easiest Way to Install Git:

  1. Install MacPorts
  2. In Terminal sudo port install git
    • You may need to run sudo port -v selfupdate before using this install command.

MacPorts has a wide variety of command-line, X11 or Aqua based open-source software for mac without the need for messing with the source to get things to compile. You can see a list of all the ports here.

于 2012-11-28T04:07:16.553 回答
0

解决方案是:

卸载 git

usr/本地/git

重新安装 git Git Sources

执行这个脚本

为非终端programs.sh设置git PATH

内包

于 2012-11-28T03:56:57.203 回答