ブランチ名を省略したgit pull エラー

最近ちょっとgitのリポジトリを変更して、git pull したら・・・

There is no tracking information for the current branch.
Please specify which branch you want to rebase against.
See git-pull(1) for details.

    git pull <remote> <branch>

If you wish to set tracking information for this branch you can do so with:

    git branch --set-upstream-to=origin/<branch> master

んんん?カレントブランチのupstreamが解決されていない???
この前までブランチ指定なんか無くてもよかったのになぜ???

素直に指定し直してみたら

git branch --set-upstream-to=origin/master master

git pullでOKになりましたとさ(^^)

WordPressやMT、WebRelease2、PHPなどのコーディングが仕事の中年おじさんです。 趣味でバンド(ギター&ボーカル)もやっていて、海外ドラマ(特にSFモノ)が大好きです。 いろいろまとめておくためにブログを立ち上げまっす!MASU!。

コメントを残す

メールアドレスが公開されることはありません。 が付いている欄は必須項目です

CAPTCHA