I set up a remote repository and I can push new changes to it, but I cannot fetch from it, I always get the (rather cryptic) error message:
fatal: Refusing t
Are you actually typing Git commands into the command line, or are you running the Git executable from your own code?
If you're running it from code, are you sure that Git is trying to fetch into the correct local directory?
There are two possible ways to do this:
Use the options provided by your programming language to set the correct working directory before executing Git
(C# example, because that's what I'm using)
Always pass the -C parameter to Git to specify the directory with the local repo.
I have a project where I'm calling the Git executable from C# code, and I got the same error message like in the question when I accidentally forgot to set the -C parameter.