LoginSignup
5
3

More than 5 years have passed since last update.

Git エラー: warning: remote HEAD refers to nonexistent ref, unable to checkout.

Posted at

Gitクローン時のエラーで 
warning: remote HEAD refers to nonexistent ref, unable to checkout.
が出る場合の対処。

今回は、 リモートリポジトリのHEADが指定するブランチがなかったのでその場合の対処

対処1.
git branch -aで表示されるブランチをチェックアウトする

対処2.
リモートのHEADが指定するブランチを設定する
やり方は以下を参照
http://qiita.com/suisuina/items/2d12b0ab8862c43c8f4a

5
3
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
5
3