I get the said error when I run the code git status /path/to/file or like git add "/path/to/file/README"
I've initialized the /path/to/file using init git init /path/to/file. This seems to work fine
From git manual git status [<options>...] [--] [<pathspec>...] I understand this means I can add /path/to/file (also answered here) or did I get it wrong?
Tried the answers from here and also the links (under This question already has an answer here:) in it.
git clone url /path/to/file works fine but git status /path/to/clone/ gives the same error
Tried Uninstalling and re-installing git. git version is 2.14.1 running on Ubuntu 17.10
Edit: If I cd /path/to/file and run git status, it works fine.