git-js icon indicating copy to clipboard operation
git-js copied to clipboard

fatal: pathspec <filename> did not match any files

Open techmsi opened this issue 6 years ago • 2 comments

Simple-git is awesome but I have one problem that I need help with(see below).

Problem

On add I get the following error even though this file does indeed exist when I run status: fatal: pathspec 'public/dist/js/app.min.js' did not match any files

.add(filesArray, (err, data) => {
  console.log("added");
}

Any help would be appreciated.

System Details

macOS Sierra 10.12.6 NPM 5.6.0 simple-git 1.92.0

techmsi avatar Apr 11 '18 13:04 techmsi

Delete files with 'git revert' could lead to this error

BigDaddy-bOne7 avatar Jan 08 '21 08:01 BigDaddy-bOne7

I have the same problem. The .add method doesn't seem to work for deleted files.

amirmohsen avatar Apr 07 '21 00:04 amirmohsen