我设置了github for mac
现在我正尝试从终端使用git命令。Git:'rebase'不是git命令。请参阅'git --help'
如果我尝试运行git rebase
命令我得到以下信息
> cd /Applications/GitHub.app/Contents/Resources/git/bin
> git rebase
git: 'rebase' is not a git command. See 'git --help'.
>git --help
usage: git [--version] [--exec-path[=<path>]] [--html-path] [--man-path] [--info-path]
[-p|--paginate|--no-pager] [--no-replace-objects] [--bare]
[--git-dir=<path>] [--work-tree=<path>] [--namespace=<name>]
[-c name=value] [--help]
<command> [<args>]
The most commonly used git commands are:
...
rebase Forward-port local commits to the updated upstream head
....
所以你可以从帮助输出选项重订存在看。
我的git有什么问题?
git --version
git version 1.7.8.2
你的'$ PATH'是什么?我会希望你必须使用'。/ git'来运行'git',而不是'git',我会假设它会提取系统安装的版本。 – trojanfoe 2012-04-12 14:06:50