Skip to content

🔧 Set Up Git LFS for Large PDFs #91

@eliemada

Description

@eliemada

Hello

Our repository contains large PDF files (lecture slides, notes, etc.) that are currently being tracked by Git. As the repository grows, this is causing the following issues:

Slow performance when running Git commands (e.g., git status, git clone, etc.)

Increased repository size due to storing large binary files in Git history.

To resolve these issues, we should configure Git LFS (Large File Storage) to track these large files (PDFs), keeping the repository size smaller and improving Git performance.

Proposed Solution:
Install Git LFS
Track PDF, parquet, zips and other heavy formats files using git lfs track "*.pdf"
Commit and push .gitattributes file
Verify that files are uploaded to Git LFS

Edit :
Would it also be possible to rewrite the history since it contains 1GB of history.
Thanks

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions