“git submodule update” failed with ‘fatal: detected dubious ownership in repository at…’

Silence all safe.directory warnings tl;dr Silence all warnings related to Git’s safe.directory system. Be sure to understand what you’re doing. git config –global –add safe.directory ‘*’ Long version Adapted from this post on I cannot add the parent directory to safe.directory in Git. I had the same issue and resolved it by disabling safe directory … Read more

How to add directory recursively on git safe.directory?

From Git 2.36, you can also add * representing ‘all’ to the safe.directory. It’s not recursive as you asked, but it may help depending upon your situation i.e. git config –global –add safe.directory “*” See https://github.blog/2022-04-18-highlights-from-git-2-36/ and search for safe.directory. EDIT: As suggested by zcoop98, we should add double quotes around ‘*’.

git submodule update failed with ‘fatal: detected dubious ownership in repository at’

Silence all safe.directory warnings tl;dr Silence all warnings related to git’s safe.directory system. Be sure to understand what you’re doing. git config –global –add safe.directory ‘*’ Long version Adapted from this post on I cannot add the parent directory to safe.directory in Git. I had the same issue and resolved it by disabling safe directory … Read more

I cannot add the parent directory to *safe.directory* in Git

Answer This seems to be related to this announcement of a vulnerability: https://github.blog/2022-04-12-git-security-vulnerability-announced/ I think it has less to do with your email, and more with the owner of the directories on your filesystem. Is the user you’re currently logged in with also the owner of the folder? How about the parent folder? Also, are … Read more

Fatal error “unsafe repository (‘/home/repon’ is owned by someone else)”

This started appearing with the release of the Git 2.35.2 security update which fixes vulnerabilities described here. Credits @Juan-Kabbali Here are four possible solutions: trust the Git directory (do it if you know the directory contents are safe) git config –global –add safe.directory /home/repon This adds the safe group to file ~/.gitconfig as shown in … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)