ベスパリブ

プログラミングを主とした日記・備忘録です。ベスパ持ってないです。

Please move or remove them before you can switch branches.

branchにcheckoutできない。

git checkout .

作業を取り消すにはこれ。実行する。
しかしまだ同じエラーが出る。

git clean -f

http://qiita.com/konweb/items/061475d6376db957b3c4
これをするといいらしいので、実行。
しかしまだ同じエラーが出る。

Please move or remove them before you can switch branches.

エラーメッセージの「branch切り替える前にファイルを削除して」という言葉を実行する。

rm folder1/folder2/folder3/* -r //フォルダ内を再帰的に削除

エラーが消えてbranchが切り替えられるようになった。