Git “fatal: detected dubious ownership in repository” I keep running into an ownership error after migrating to a new computer. sudo chown -R $(whoami) . fixes it for me. Read full article