You can check Git Post Related safe.directory You are all facing this warning is related to git's safe.directory system You need to run the following command to solve all unsafe repo's warning. Jusr tun this following command in your tereminal: git config --global --add safe.directory '*' If You are still facing any error then You need to put double quotes instead of single quotes Just like this: git config --global --add safe.directory "*" And this safe directory command will add safe directory section in your .gitconfig file. and Now, You will no longer face the above error.