Skip to content

Commit

Permalink
Remove .git* from generated archives
Browse files Browse the repository at this point in the history
GitHub allows to download archives for each tag. They use git archive
for that. By specifying a pattern in .gitattributes, we can remove
specific stuff from the generated archives.
  • Loading branch information
programming-wolf committed Jan 12, 2021
1 parent 8e8a0c7 commit 8d7d7ed
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
# exclude .gitignore, CI config and similar from the generated tarball
.git* export-ignore

0 comments on commit 8d7d7ed

Please sign in to comment.