简体   繁体   English

git忽略远程文件

[英]git ignoring remote file

I have access to a private remote repository on bitbucket and running git clone on it. 我可以访问bitbucket上的私有远程存储库并在其上运行git clone。 The files seem to copy fine but package.json in the root of the repository is completely ignored, although I can see it fine in bitbucket. 这些文件似乎可以很好地复制,但是存储库根目录中的package.json被完全忽略了,尽管我可以在bitbucket中看到它很好。 How do I force getting all the files? 如何强制获取所有文件? Or maybe the repository owner should do something about it like checking it in - although I believe it was done if it's in the repository. 或者,也许存储库所有者应该对此进行一些操作,例如签入-尽管我相信它已经在存储库中完成了。 The repository owner is claiming he tried to clone it to a new directory himself and it was fine. 存储库所有者声称他试图自己将其克隆到新目录中,这很好。

Any help appreciated! 任何帮助表示赞赏!

UPD Here's what I get after entering the password: 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

Windows has a maximum file path length of 260. Some of the files that threw errors look like they're pushing that limit, depending on where you cloned them to. Windows的最大文件路径长度为260。某些引发错误的文件看起来像是在推动该限制,具体取决于您将它们克隆到的位置。 Try making the file path shorter, or cloning the repository to a directory closer to the filesystem root (ie cloning to C:\\temp instead of C:\\Users\\dredfern\\longdirectorynamehere\\ ). 尝试缩短文件路径,或将存储C:\\Users\\dredfern\\longdirectorynamehere\\到更靠近文件系统根目录的目录(即,克隆到C:\\temp而不是C:\\Users\\dredfern\\longdirectorynamehere\\ )。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM