Created
April 24, 2024 21:38
-
-
Save pranavmishra90/784bdc950e654bc9bae6693851f7e36f to your computer and use it in GitHub Desktop.
Datalad gitattributes for git-annex
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Dataset root directory gitattributes file | |
#------------------------------------------------ | |
* annex.backend=MD5E | |
**/.git* annex.largefiles=nothing | |
metadata/aggregate* annex.largefiles=nothing | |
metadata/objects/** annex.largefile=(anything) | |
# Directories to exclude from git-annex | |
#------------------------------------------------ | |
**/code | |
**/doc | |
**/deploy | |
# Filetypes to exclude from git-annex | |
#------------------------------------------------ | |
# Code | |
*.md annex.largefiles=nothing | |
*.qmd annex.largefiles=nothing | |
*.ipynb annex.largefiles=nothing | |
*.yml annex.largefiles=nothing | |
*.yaml annex.largefiles=nothing | |
# Figures | |
*.jpg annex.largefiles=nothing | |
*.jpeg annex.largefiles=nothing | |
*.png annex.largefiles=nothing | |
*.heic annex.largefiles=nothing | |
*.svg annex.largefiles=nothing | |
# Tables | |
*.csv annex.largefiles=((largerthan=50MB)) | |
# Include in git-annex | |
#------------------------------------------------ | |
# All binary files | |
* annex.largefiles=((mimeencoding=binary)and(largerthan=10MB)) | |
# Office files | |
*.docx annex.largefiles=((largerthan=0)) | |
*.doc annex.largefiles=((largerthan=0)) | |
*.xlsx annex.largefiles=((largerthan=0)) | |
*.xlsm annex.largefiles=((largerthan=0)) | |
*.xls annex.largefiles=((largerthan=0)) | |
*.pptx annex.largefiles=((largerthan=0)) | |
*.ppt annex.largefiles=((largerthan=0)) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment