解决方案,参见:https://stackoverflow.com/questions/26097568/git-pull-error-unable-to-create-file-invalid-argument

下面 稍微解释一下:

 

I ran into the same problem, but wasn't willing to rename or delete these files. So here's a workaround in case you can live without accessing those files using a sparse-checkout:

 

Go to the .git folder in your repo and open the file config. (You can also edit your configuration using tortoise-git, but I havn't got it installed here.) In the [core]section add the line

 

sparsecheckout = true

(以上为第一步)

then go to the folder .git/info and create the file sparse-checkout. Add something like

*

!kickstarter/parsers/data/kickstarter/campaigndetails/*

(以上为第二步)

The first line includes everything, while the second excludes all files in kickstarter/parsers/data/kickstarter/campaigndetails/. You should now be able to checkout the repo. Using wild-cards you can probably do more sophisticated excludes.

(!开头的为排除,可以设置多行、多个排除)

 

 

 

Logo

新一代开源开发者平台 GitCode,通过集成代码托管服务、代码仓库以及可信赖的开源组件库,让开发者可以在云端进行代码托管和开发。旨在为数千万中国开发者提供一个无缝且高效的云端环境,以支持学习、使用和贡献开源项目。

更多推荐