Once Git LFS is installed, you need to associate it with a large file in your repository.
Git Large File Storage on GitHub Enterprise is part of an early access technical preview. It is not currently supported for production use. If you experience any issues, contact GitHub Enterprise support.
Note: Before trying to push a large file to GitHub Enterprise, make sure that you've enabled Git LFS on your appliance.
Open TerminalTerminalGit Bash.
Change your current working directory to an existing repository you'd like to use with Git LFS.
-
To associate a file type in your repository with Git LFS, enter
git lfs track
followed by the name of a file extension to associate that file type.For example, to associate a .psd file, enter the following command:
git lfs track "*.psd" Adding path *.psd
Every file type you want to associate with Git LFS will need to be added with
git lfs track
. This command amends your repository's .gitattributes file and associates large files with Git LFS.Tip: We strongly suggest that you commit your local .gitattributes file into your repository. Relying on a global .gitattributes file associated with Git LFS may cause conflicts when contributing to other Git projects.
-
Add a file to the repository matching the extension you've associated:
git add path/to/file.psd
-
Commit the file and push it to GitHub Enterprise:
git commit -m "add file.psd" git push origin master
You should see some diagnostic information about your file upload:
Sending file.psd 44.74 MB / 81.04 MB 55.21 % 14s 64.74 MB / 81.04 MB 79.21 % 3s