Hello everyone.
I'm trying to pull some updates to my production repository, in a ubuntu server, but when i try to run any git command, i get this error.
fatal: unsafe repository ('/var/www/html/[REPO]' is owned by someone else)
To add an exception for this directory, call:
git config --global --add safe.directory /var/www/html/[REPO]
I'had already upgrade to latest version of git because the security vulnerability announced in April, 12. (https://github.blog/2022-04-12-git-security-vulnerability-announced/). and tried to run suggested command, to add safe.directory to my git global configs, but dont have any effect.
Thanks.