**Use .gitattributes to ignore .git files on export:** ``` .gitattributes export-ignore .gitignore export-ignore ``` That way we can export via archive cleanly: ``` git archive master -o latest.zip ``` **Use .gitattributes to force diff language:** ``` *.php diff=php ```