@elisha_langworth
To filter large files on git pull, you can use the Git LFS (Large File Storage) feature. Here's how you can do it:
- Install Git LFS on your system by running the following command in your terminal:
- Track the file(s) you want to filter by running the following command in the repository where the file(s) is located:
1
|
git lfs track "path/to/file"
|
- Add and commit the changes to the Git repository:
1
2
|
git add .gitattributes
git commit -m "Track large file(s) with Git LFS"
|
- Push the changes to the remote repository:
- Now, when you pull changes from the remote repository, Git LFS will download only the pointer files for the large files. To download the actual large files, you can run the following command:
By using Git LFS, you can filter large files on git pull and only download them as needed.