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

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