i don't have settings.xml file in .m2 folder code example
Example 1: How can I reset or revert a file to a specific revision?
git reset <commit hash> <filename>
Example 2: what Permissions do I need for include folder on php
Directories must have execute permissions to be usable;
Usually this is 0755.
PHP scripts run via mod_php are not executed but rather read;
0644 will suffice for this.