I am just running following command on a folder which is part of git repo
The command I am running is: git rm -r --cached . However git is constantly throwing following error:
fatal: pathspec '.' did not match any files
I have no idea why is that. . definitely exists and is definitely part of a git repo. The error does not explain much in detail
Probably you have gotten yourself into a folder with no tracked files. Since git does not track folders, only files, there is no useful sense in which this folder "exists" for git.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With