The other day while committing some files with git I got this error
fatal: detected dubious ownership in repository at 'C:/work/proj/el_projet' 'C:/work/proj/el_projet' is owned by: 'S-1-5-32-544' but the current user is: 'S-1-5-21-977389955-4071232789-576986652-1001'
I didn't do anything strange.
Git himself, and several people on blogs and stack overflow propose this solution
To add an exception for this directory, call:
git config --global --add safe.directory C:/work/el_projet
But it doesn't seem very elegant. At least on Windows, it's just a matter of file ownership, go check the owner on files in your project, and especially the .git folder. In my case, it was changed from the user I usually log in with, to the Administrators group. Changed the ownership from explorer, et voilà.. problem disappeared. Let's put it here so it maybe will get along the other solutions in search engine results!
No comments:
Post a Comment