To work with this repository, you need to have Git LFS (Large File Storage) installed on your system. Git LFS helps manage large files and keeps your repository within GitHub's file size limits.
Follow these steps to install Git LFS and set it up in your terminal:
The installation process varies depending on your operating system. Choose the appropriate method for your system:
sudo apt-get install git-lfssudo dnf install git-lfsIf you have Homebrew installed, you can install Git LFS using the following command:
brew install git-lfsIf you use MacPorts, you can install Git LFS with the following command:
sudo port install git-lfsDownload and run the Git LFS installer from the official Git LFS website: Git LFS Website
Once Git LFS is installed, navigate to your Git repository using the terminal and run the following command to initialize Git LFS for your repository:
git lfs installYou can now start tracking large files with Git LFS. To do this, use the git lfs track command followed by a file pattern (or individual file names) to specify which files should be managed by Git LFS. For example, to track all files with the ".obj" extension:
git lfs track "*.obj"
git lfs track "*.gltf"This command creates or updates a .gitattributes file in your repository to specify which files should be handled by Git LFS.
After tracking the large files, commit your changes to the repository as you normally would:
git add .
git commit -m "Add large files"Finally, you can push your changes to GitHub:
git push origin branch-nameWith these steps, you've successfully installed Git LFS, initialized it for your repository, and started tracking large files using Git LFS. Large files will be stored externally, and your repository will contain pointers to those files, ensuring that you don't exceed GitHub's file size limit.
Now you're ready to work with large files in this repository seamlessly!