我可以访问bitbucket上的私有远程存储库并在其上运行git clone。这些文件似乎复制得很好,但是存储库根目录中的package.json完全被忽略了,尽管我可以在bitbucket中看到它很好。 如何强制获取所有文件?或者也许存储库所有者应该对其进行一些操作,例如检入它 - 尽管我相信如果存储库存在它就会完成。存储库所有者声称他试图将其自己克隆到一个新目录,这很好。
任何帮助表示赞赏!
UPD 这是我输入密码后得到的结果:
remote: Counting objects: 8452, done.
remote: Compressing objects: 100% (6266/6266), done.
remote: Total 8452 (delta 1410), reused 8303 (delta 1325)
Receiving objects: 100% (8452/8452), 40.11 MiB | 123 KiB/s, done.
Resolving deltas: 100% (1410/1410), done.
error: unable to create file node_modules/gulp-bower/node_modules/bower/node_mod
ules/update-notifier/node_modules/configstore/node_modules/js-yaml/node_modules/
argparse/node_modules/underscore.string/dist/underscore.string.min.js (No such f
ile or directory)
fatal: cannot create directory at 'node_modules/gulp-bower/node_modules/bower/no
de_modules/update-notifier/node_modules/configstore/node_modules/js-yaml/node_mo
dules/argparse/node_modules/underscore.string/test/test_underscore': No such fil
e or directory
答案 0 :(得分:2)
Windows的最大文件路径长度为260.某些抛出错误的文件看起来像是在推动该限制,具体取决于您克隆它们的位置。尝试缩短文件路径,或将存储库克隆到更靠近文件系统根目录的目录(即克隆到C:\temp
而不是C:\Users\dredfern\longdirectorynamehere\
)。