Git Large File Storage (LFS) is an extension for Git that allows you to store and manage large files, such as videos, images, and audio files more efficiently. GitHub Desktop is a desktop application that allows you to interact with your GitHub repositories, and it also supports Git LFS.
Here are the general steps to use GitHub Desktop with Git LFS:
- Install Git LFS on your machine: Git LFS is not included with GitHub Desktop by default, so you’ll need to install it separately. You can download and install Git LFS from the Git LFS website.
- Track the files you want to use with LFS: You will need to specify which files you want to use with LFS by running the command
git lfs track "*.ext"in the command line. This command will track all files with the specified extension.
- Push your changes to the GitHub repository: Once you’ve tracked your files, you can make your changes, commit them and push them to the GitHub repository as usual. GitHub Desktop will automatically use Git LFS to store and manage the large files.
- You can also see the LFS files in the GitHub Desktop, by going to the repository, navigate to the “History” tab, you will see the LFS files with a download icon, you can download them and view them.
It’s important to note that using LFS will increase the size of your repository and will require extra storage space. However, it will also allow you to store large files more efficiently, and make it easier to manage them.