From e09f452426f89ccd2bbcc0d588744bdd5dc0d9db Mon Sep 17 00:00:00 2001 From: logmanoriginal Date: Mon, 19 Nov 2018 18:01:17 +0100 Subject: [PATCH] [.gitattributes] Exclude files from git archive Files with the option "export-ignore" are excluded from "git archive" commands. Release files from GitHub will also ignore those files, so packages are smaller and don't include unneccessary files. --- .gitattributes | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/.gitattributes b/.gitattributes index 412eeda7..a141bb12 100644 --- a/.gitattributes +++ b/.gitattributes @@ -20,3 +20,17 @@ *.PDF diff=astextplain *.rtf diff=astextplain *.RTF diff=astextplain + +# Ignore files in git archive (i.e. GitHub release builds) +Dockerfile export-ignore +.travis.yml export-ignore +.github/ export-ignore +.gitattributes export-ignore +.gitignore export-ignore +.dockerignore export-ignore +scalingo.json export-ignore +phpunit.xml export-ignore +phpcs.xml export-ignore +phpcompatibility.xml export-ignore +tests/ export-ignore +cache/.gitkeep export-ignore \ No newline at end of file