Error:

When using Git, getting the following error when trying to link to a Git repository…

git exited with code: 128

fatal: detected dubious ownership in repository at xxxxxx is on a file system that does not record ownership
To add an exception for this directory, call:

	git config --global --add safe.directory xxxxxx
fatal: Could not read from remote repository.

Please make sure you have the correct access rights
and the repository exists.

Fix:

Open up command prompt and run

git config --global --add safe.directory "*"

The above should add the safe directory to the .gitconfig file

[user]
	name = xxxxxxxx
	email = xxxxxxxx
[safe]
	directory = *

Reference:

https://stackoverflow.com/questions/72978485/git-submodule-update-failed-with-fatal-detected-dubious-ownership-in-reposit

Last modified: September 11, 2024

Author

Comments

Write a Reply or Comment