fatal: pathspec for removing folder in git
- by Elnaz Shahmehr
I want to remove a folder from a Git repository but I get an error.
I tried several commands, and here you can see my errors:
selnaz:iOS Lnaz$ ls
iOS-Tidinfo mockup readme.txt
selnaz:iOS Lnaz$ git rm -r -- iOS-Tidinfo/
fatal: pathspec 'tidinfo/iOS/iOS-Tidinfo/' did not match any files
selnaz:iOS Lnaz$ git rm -r iOS-Tidinfo/
fatal: pathspec 'tidinfo/iOS/iOS-Tidinfo/' did not match any files
selnaz:iOS Lnaz$ git rm -r iOS-Tidinfo/
fatal: pathspec 'tidinfo/iOS/iOS-Tidinfo/' did not match any files
selnaz:iOS Lnaz$ git rm -r tidinfo/iOS/iOS-Tidinfo/
fatal: pathspec 'tidinfo/iOS/tidinfo/iOS/iOS-Tidinfo/' did not match any files