This question already has an answer here:
I'm trying to manipulate files in a directory whose filepath includes a directory that starts with "$", for instance:
git rm path/to/file/$dollarsigndirectory/anotherdirectory/file.format
I'm getting the following error:
fatal: pathspec 'path/to/file//anotherdirectory/file.format' did not match any files
EDIT: I've already tried using \$dollarsigndirectory and it simply says there isn't a directory called '\$dollarsigndirectory'
I've tried to troubleshoot but can't figure out why the '$' would make the directory invisible. Thanks!