Install Node red Version 3.02 docker image GIT ERROR

Hi, i installed the 3.0.2 of Nodered on my rpi4b via a docker image.
Everything seems to work ok, except i get a strange error in my log in nodered

Error: fatal: detected dubious ownership in repository at '/data/projects/iot_nodered'
To add an exception for this directory, call:

git config --global --add /data/projects/iot_nodered

I did a git config --global --add /data/projects/iot_nodered, but the error remains.
Looks strange because folder iot_nodered is in my .gitignore file

And my gitconfig is also ok!
directory = /data/projects/iot_nodered

Also this history sidebar does not show any changes anymore after a change and deply

Any suggestions ?
Other option is disable the use of git and use the project local, but even that does not work,,,,