The trick is by using the `export-ignore`: https://git-scm.com/docs/gitattributes#__code_export_ignore_code This is useful when we want to upload the app into the shared host with FTP. For example: https://github.com/ARCANEDEV/LogViewer/blob/master/.gitattributes