5
Z:\>git clone git://github.com/kennethreitz/httpbin.git
Cloning into 'httpbin'...
remote: Counting objects: 1073, done.
remote: Compressing objects: 100% (401/401), done.
remote: Total 1073 (delta 672), reused 1045 (delta 651)
Receiving objects: 100% (1073/1073), 114.42 KiB | 128 KiB/s, done.
Resolving deltas: 100% (672/672), done.
error: unable to create file httpbin/templates/... (Is a directory)

gitバージョン1.8.0.msysgit.0、Windows Vista SP2 x64

どうしたの?

4

1 に答える 1

9

問題は、このファイルがあなたのリポジトリにあることだと思います:https ://github.com/kennethreitz/httpbin/blob/master/httpbin/templates/ .. ..

...Windowsでは有効なファイル名ではありません

リポジトリを取得するには、ファイルをチェックアウトせずにクローンを作成します(-nフラグ付き)。

git clone -n git://repo

次に、を使用しsparse-checkoutてすべてのファイルを取得することも、実際に必要なファイル...のみを取得することもできます。git checkout

于 2012-10-23T23:20:55.797 に答える