fatal: detected dubious ownership in repository

Posted by

root@ip-180-81-85-00:/opt/lampp/htdocs/holidaylandmark/events# git pull origin master

fatal: detected dubious ownership in repository at ‘/opt/lampp/htdocs/holidaylandmark/events’

To add an exception for this directory, call:

        git config –global –add safe.directory /opt/lampp/htdocs/holidaylandmark/events

root@ip-180-81-85-00:/opt/lampp/htdocs/holidaylandmark/events# git config –global –add

error: wrong number of arguments, should be 2

Solution:

git config --global --add safe.directory "full path your directory"

then now run this command “git pull origin master”

0 0 votes
Article Rating
Subscribe
Notify of
guest
0 Comments
Inline Feedbacks
View all comments
0
Would love your thoughts, please comment.x
()
x