fatal: pathspec for removing folder in git

Posted by Elnaz Shahmehr on Super User See other posts from Super User or by Elnaz Shahmehr
Published on 2012-06-26T14:11:48Z Indexed on 2012/06/26 15:18 UTC
Read the original article Hit count: 1421

Filed under:

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

© Super User or respective owner

Related posts about git