*
Use above command to surpass the security check.
The only difference is that i have not used Apostrophe for directory.
==============================================
git config --global --add safe.directory '*'
'*'