5

Mac用のgithubをセットアップしました
が、ターミナルからgitコマンドを使用しようとしています。

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
....

ヘルプ出力からわかるように、オプション rebase が存在します。
私のgitで何が問題になっていますか?

git --version
git version 1.7.8.2
4

3 に答える 3

7

私の場合、このエラーメッセージ( "")を修正するには、 Git "exec-path"を、コマンドラインでワンショットで使用するか、環境変数で設定する'rebase' is not a git command必要が あることがわかりました。

export GIT_EXEC_PATH=/PATH/TO/git/libexec/git-core
于 2012-12-21T10:14:44.900 に答える