git ignoring remote file

I have access to a private remote repository on bitbucket and running git clone on it. 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.
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!

  • “Git for Windows has stopped working” on Windws 7
  • Git configuration to pull/push WITH password
  • git error: cannot stat <filename> : Protocol error
  • Create new repo on Bitbucket from Git Bash terminal?
  • Git - should I have a different README in each branch?
  • fatal: cannot opendir 'folder': No such file or directory
  • UPD
    Here’s what I get after entering the password:

    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
    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
    dules/argparse/node_modules/underscore.string/test/test_underscore': No such fil
    e or directory

  • How to safely checkout a temporary working tree from a git repository?
  • using git to selectively push certain files but then I can't checkout another branch
  • What does “commit your changes or stash them” mean?
  • How Can I Push a Shallow Cloned Git Subtree?
  • Git split inital commit into 2
  • Project vs Repository in GitHub
  • One Solution collect form web for “git ignoring remote file”

    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. Try making the file path shorter, or cloning the repository to a directory closer to the filesystem root (i.e. cloning to C:\temp instead of C:\Users\dredfern\longdirectorynamehere\).

    Git Baby is a git and github fan, let's start git clone.