Git LFS tracking Engine content error.

Hello, so I’ve been trying to set up git lfs on my project, the problem is that for some reason git is trying to track engine content which is outside the repository so I get a fatal error when I try to commit. So how can I prevent that?

So what you’re experiencing is that git is attempting to track engine content that’s in a completely separate directory from your repository, right? There might be a misconfiguration …

First check your .git/config file for any unusual external paths. Run git status to see if external files are listed. And also run git submodule to list any submodules. The engine directory should not be listed as a submodule, if it is, you’ll need to remove it.

I have the same problem. No external paths in config, no submodules, I even disabled option to show engine content in content browser - error is still there