git-js
git-js copied to clipboard
fatal: pathspec <filename> did not match any files
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
Delete files with 'git revert' could lead to this error
I have the same problem. The .add
method doesn't seem to work for deleted files.