error: unable to create file path/to/file: Invalid argument
問題
git clone 実行中に次のエラーが表示される
error: unable to create file path/to/file: Invalid argument fatal: unable to checkout working tree warning: Clone succeeded, but checkout failed. You can inspect what was checked out with 'git status' and retry the checkout with 'git checkout -f HEAD'
訳
エラー: ファイル path/to/file を作成できません: 無効な引数 致命的: ワーキングツリーをチェックアウトできません 警告: クローンは成功しましたが、チェックアウトは失敗しました。 'git status' でチェックアウトされたものを点検して、 'git checkout -f HEAD' でチェックアウトをリトライできます
環境
- Git 2.10.22
- Widnows 7 Professional 64-bit
原因
チェックアウトするファイルの名前に Windows では使えない文字が含まれているため。
解決方法
該当するファイルの名前を変更する、または不要なファイルであればリポジトリーから削除する。