小编joh*_*doe的帖子

如何在Mac上开始使用Git

我在我的Mac上安装了Git,但我不知道如何运行它或访问它.从终端我输入git,但它说"命令无效".

我从http://code.google.com/p/git-osx-installer/downloads/list?can=3下载了git, 然后我下载了"Git Installer 1.7.3.5 - OS X - Leopard - x86_64"软件包.

更新1:

包的内容如下:

  • 的README.txt
  • GIT-1.7.3.5-x86_64的,leopard.pkg
  • 为非终端程序设置git PATH
  • uninstall.sh

当我执行"setup git PATH for non-terminal programs.sh"时,我收到以下消息:

在〜/ .MacOSX/environment.plist中没有改变PATH
~/Volumes/Git 1.7.3.5 x86_64 Leopard/Volumes/Git 1.7.3.5 x86_64 Leopard -MacBook-Pro:Git 1.7.3.5 x86_64 Leopard $ $ PATH -bash:/ usr/local/bin:/ bin:/ sbin:/ usr/bin:/ usr/sbin:/ usr/libexec:没有这样的文件或目录

更新2:

我的个人资料文件的内容如下:

# System-wide .profile for sh(1)

if [ -x /usr/libexec/path_helper ]; then
    eval `/usr/libexec/path_helper -s`
fi

if [ "${BASH-no}" != "no" ]; then
    [ -r /etc/bashrc ] && . …
Run Code Online (Sandbox Code Playgroud)

git macos

18
推荐指数
2
解决办法
6万
查看次数

标签 统计

git ×1

macos ×1