Lax*_*idi 2 mac git installation
我正在尝试在 Mac 上安装 Git。我找到了这些说明:crainbandy
但是,我有点不明白。
1. Change directories to the mounted image
bash$ cd /Volumes/Git\ 1.6.4.4\ Intel\ Leopard/
bash$ ls
README.txt setup git PATH for non-terminal programs.sh
git-1.6.4.4-intel-leopard.pkg uninstall.sh
bash$ ./setup\ git\ PATH\ for\ non-terminal\ programs.sh
2. Run the shell script (last line above)
Run Code Online (Sandbox Code Playgroud)
是的,他们已经给出了确切的指示。但是,我不知道 bash 并且我很少使用终端,所以我需要一些帮助。我是否直接输入读取 README.txt 的部分?我是否真的输入:
bash$ cd /Volumes/Git\ 1.6.4.4\ Intel\ Leopard/
bash$ ls
README.txt setup git PATH for non-terminal programs.sh
git-1.6.4.4-intel-leopard.pkg uninstall.sh
bash$ ./setup\ git\ PATH\ for\ non-terminal\ programs.sh"
Run Code Online (Sandbox Code Playgroud)
我需要改变什么吗?
我不想搞砸任何事情。
不,不要按字面意思键入bash$ ls …
。with 的部分bash$
是您的命令提示符。你必须输入后面的所有内容。所以,在你的情况下:
cd /Volumes/Git\ 1.6.4.4\ Intel\ Leopard/
ls
./setup\ git\ PATH\ for\ non-terminal\ programs.sh
Run Code Online (Sandbox Code Playgroud)
如果这不起作用或看起来很复杂,请帮自己一个忙并使用Homebrew安装 Git 。运行这个:
/usr/bin/ruby -e "$(curl -fsSL https://raw.github.com/gist/323731)"
Run Code Online (Sandbox Code Playgroud)
……然后等到它完成。重新启动您的终端。然后运行:
brew install git
Run Code Online (Sandbox Code Playgroud)
你已经完成了。
归档时间: |
|
查看次数: |
697 次 |
最近记录: |