In the use of Mac, often we encounter the relevant files can not be used, in fact, most of the situation is, file permissions issues.
Access to a file or directory is divided into read-only, write-only, and executable three types. As an example of a file, a read-only permission means that only the content is allowed to be read, and any changes to it are forbidden. Executable permission means that the file is allowed to be executed as a program. When a file is created, the file owner automatically has read, write, and execute permissions on the file to facilitate the reading and modification of the file. Users can also set access rights to any combination they want, as needed.
Mac Set folder permissions
Chmod-r 777 Testfile
Set file permissions
chmod 777 Txt.txt
Resources:
Mac OS X file Rights Management
Let GIT ignore it globally. Ds_store
How to Set folder permissions for 777 Mac OS X system under chmod +x Comdfile
Mac setting File permissions issues