From cc61ef01c048186563659ab4d209dfbf1878b2a8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?IOhannes=20m=20zm=C3=B6lnig?= Date: Tue, 27 Oct 2020 10:24:49 +0100 Subject: [PATCH] Exclude repository-config from exported archive when using 'git archive' to export a repository into an archive (e.g. as is done by github/gitlab to create release-tarballs), we don't really want to export any repository configuration (e.g. .gitignore), as this interacts badly with downstream importing the release-tarball into their own repositories. e.g. Debian (for the Debian packages) uses their own git-repository for the packaging. having debian/ ignored there is rather pointless. --- .gitattributes | 2 ++ 1 file changed, 2 insertions(+) create mode 100644 .gitattributes diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000..29b65a9 --- /dev/null +++ b/.gitattributes @@ -0,0 +1,2 @@ +.git* export-ignore +.travis.yml export-ignore