fatal: detected dubious ownership in repository at '/home/dev/site'
Another user owns the repo, often root after a sudo git clone. Take it back:
sudo chown -R dev:dev ~/site
Can't? Run the git config line the error prints: it trusts that path only. Never '*'.
Who owned yours?
#Git #Linux
fatal: detected dubious ownership in repository at '/home/dev/site' Another user owns the repo, often root after a sudo git clone. Take it back: sudo chown -R dev:dev ~/site Can't? Run the git config line the error prints: it trusts that path only. Never '*'. Who owned yours? #Git #Linux
0 vue
Publié le 04/12/2026 02:20
0:14
fatal: detected dubious ownership in repository at '/home/dev/site'
Another user owns the repo, often root after a sudo git clone. Take it back:
sudo chown -R dev:dev ~/site
Can't? Run the git config line the error prints: it trusts that path only. Never '*'.
Who owned yours?
#Git #Linux
The '*' value turns the check off for every repo.
Docs:
git-scm.com/docs/git-con...