開発環境で削除もcheckoutもできないブランチが存在して、非常に不思議な状態に陥っています。
-bash-4.1$ git branch develop * master -bash-4.1$ git branch -d develop error: branch 'develop' not found. -bash-4.1$ git checkout develop error: pathspec 'develop' did not match any file(s) known to git.
この状態で同名のブランチを作成することができてしまいます。
-bash-4.1$ git branch develop -bash-4.1$ git branch develop develop * master
末尾に空白が付いているというわけでもないようです。
-bash-4.1$ git branch 20150909_755\ fatal: '20150909_755 ' is not a valid branch name. -bash-4.1$ git branch 20150909_755\ \ fatal: '20150909_755 ' is not a valid branch name. -bash-4.1$ git branch 20150909_755\ \ \ fatal: '20150909_755 ' is not a valid branch name. -bash-4.1$ git branch 20150909_755\ \ \ \ fatal: '20150909_755 ' is not a valid branch name.
ローカルブランチは多数ありますが、なぜかこのdevelopブランチだけがこういう状態になっています。
作業環境はCentOS 6.4、gitのバージョンは1.8.5.3です。
このブランチはなぜ発生しているのでしょうか?
そしてどうやったらこのブランチは削除できるのでしょうか。
-bash-4.1$ git --version git version 1.8.5.3
追記
上の出力はiTermでの出力でしたが、Terminalで出力したところ以下のように表示されました。
-bash-4.1$ git branch * develop deve?Llop master
作業環境はmacですか?ローカルブランチは大量にあるのですか?それとも消せないブランチを含めて3つ?
回答2件
あなたの回答
tips
プレビュー