LoginSignup
6
5

More than 3 years have passed since last update.

git fetchしてもリモートリポジトリのブランチを取得できない時

Posted at

他の人のブランチにチェックアウトしようとした際に発生。

.git/configのfetchの値がおかしい時に発生

こうなっていたのを

[remote "origin"]
fetch = +refs/heads/master:refs/remotes/origin/master

こうすれば変更可能。

[remote "origin"]
fetch = +refs/heads/*:refs/remotes/origin/*
6
5
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
6
5