Versions
- 9.5
- 9.4
- 9.3
- 9.2
- 9.1
- 9.0
- 8.19
- 8.18
- 8.17
- 8.16
- 8.15
- 8.14
- 8.13
- 8.12
- 8.11
- 8.10
- 8.9
- 8.8
- 8.7
- 8.6
- 8.5
- 8.4
- 8.3
- 8.2
- 8.1
- 8.0
- 7.21
- 7.20
- 7.18
- 7.19
- 7.17
- 7.16
- 7.15
- 7.14
- 7.13
- 7.12
- 7.11
- 7.10
- 7.9
- 7.8
- 7.7
- 7.6
- 7.5
- 7.4
- 7.3
- 7.2
- 7.1
- 7.0
- 6.10
- 6.9
- 6.8
- 6.7
- 6.6
- 6.5
- 6.4
- 6.3
- 6.2
- 6.1
- 6.0
- 5.16
- 5.15
- 5.14
- 5.13
- 5.12
- 5.11
- 5.10
- 5.9
- 5.8
- 5.7
- 5.6
- 5.5
- 5.4
- 5.3
- 5.2
- 5.1
- 5.0
- 4.14
- 4.13
- 4.12
- 4.11
- 4.10
- 4.9
- 4.8
- 4.7
- 4.6
- 4.5
- 4.4
- 4.3
- See all
Git Large File Storage (LFS)
Advanced actions
- Running the Bitbucket Server installer
- Automated setup for Bitbucket Server
- Starting and stopping Bitbucket Server
- Install Bitbucket Server from an archive file
- Running Bitbucket Server as a Linux service
- Running Bitbucket Server as a Windows service
- Bitbucket Server config properties
- Proxying and securing Bitbucket Server
- Enabling SSH access to Git repositories in Bitbucket Server
- Using diff transcoding in Bitbucket Server
- Changing the port that Bitbucket Server listens on
- Moving Bitbucket Server to a different context path
- Running Bitbucket Server with a dedicated user
- Bitbucket Server debug logging
- Data recovery and backups
- Lockout recovery process
- Scaling Bitbucket Server
- High availability for Bitbucket Server
- Clustering with Bitbucket Data Center
- Enabling JMX counters for performance monitoring
- Getting started with Bitbucket Server and AWS
- Disabling HTTP(S) access to Git repositories in Bitbucket Server
- Smart Mirroring
- Git Large File Storage (LFS)
On this page
Related content
- Moving Git large files to Git LFS in Bitbucket Server
- Moving Git large files to Git LFS in Bitbucket Server
- How to use non-text documents, such as docx, exe, or zip with Bitbucket Server and Data Center
- Supported platforms details
- Git LFS fails with error: failed to push some refs to
- Set up a mirror
- Smart Mirroring
- Clone a repository
- Enabling SSH access to Git repositories in Bitbucket Server
- How to disable delta compression on Bitbucket Server server for a particular file type
Git Large File Storage (or LFS) is a new, open-source extension to Git that aims to improve handling of large files. It does this by replacing large files in your repository—such as graphics and videos—with simple text pointers.
Git LFS is disabled by default within Bitbucket Server.
Important Notices
- The Bitbucket Server Smart Mirroring feature does not support Git LFS content. You currently need to clone from the primary instance if the repository contains LFS content.
- SSL should be configured and the Base URL should be configured to a "https" URL. While Git LFS does support SSH remotes, the actual download & upload of LFS objects is via HTTP(S). SSL configuration is not a requirement but is strongly recommended.
Please refer to Bitbucket Server Supported Platforms to ensure use of a compatible version of the Git LFS client.
The user running the Bitbucket Server instance should not have the Git LFS client executable installed.
Enabling Git LFS for a repository
Git LFS is disabled by default within Bitbucket Server.
- Go to Repository settings > Large file support (LFS)
- Tick the Allow LFS option.
- Save your settings.
Installing the Git LFS command line client
To install Git LFS locally
Download and install the Git command line extension. You only have to set up Git LFS once.
git-lfs install
Enter the file types you'd like Git LFS to manage.
git lfs track "*.jpg"
Commit and push to Bitbucket as you normally would, ensuring that as the .gitattributes file is updated when git lfs track or git lfs untrack is executed, it is also committed to the repository.
You're ready to start versioning large files with Git LFS.
Disabling Git LFS for Bitbucket Server
Bitbucket Server is shipped with Git LFS support enabled on the instance by default, however it can be disabled.
To disable Git LFS on the entire Bitbucket Server instance
- Log in to Bitbucket Server with sysadmin permissions.
- Go to Admin > Server settings.
- Untick the Git LFS enabled option.
- Save your settings.
Related content
- Moving Git large files to Git LFS in Bitbucket Server
- Moving Git large files to Git LFS in Bitbucket Server
- How to use non-text documents, such as docx, exe, or zip with Bitbucket Server and Data Center
- Supported platforms details
- Git LFS fails with error: failed to push some refs to
- Set up a mirror
- Smart Mirroring
- Clone a repository
- Enabling SSH access to Git repositories in Bitbucket Server
- How to disable delta compression on Bitbucket Server server for a particular file type