Git LFS
You can use the LFS tab to manage Git Large File Storage (LFS), which stores large binary files on a separate server.
Navigate the LFS tab
To open the LFS tab, click Git > LFS. The LFS tab opens within the Git Settings tab. To open the LFS tab in a separate tab, click the Open in new tab icon. To set up LFS in a repository, click the Initialize LFS button.
The LFS tab is organized into the Status, Operations, Locks, Tracked Patterns, and Maintenance sections.
Status
You can use the Status section to view information about LFS. The Status section displays the following information.
- Git LFS binary installation status
- LFS Tracking status
- Tracked Patterns count
- Local Storage size and object count
Operations
You can use the Operations section to perform operations in the LFS. The following operations are available in the Operations tab.
| Operation | Description |
|---|---|
| Pull | Download LFS objects from remote |
| Fetch | Fetch LFS metadata without downloading |
| Prune | Remove unreferenced local LFS objects |
Click Auto-sync LFS objects with pull/push to toggle automatic LFS pull and push with Git operations.
Locks
You can use the Locks section to view files that are locked to prevent merge conflicts.
Click Refresh to refresh the Locks section file list.
Tracked Patterns
You can use the Tracked Patterns section to view file patterns tracked by Git LFS.
Click Quick Add to add a file pattern to the .gitattributes file or click Edit .gitattributes to manually add the file pattern.
A warning banner appears if the .gitattributes file has uncommitted changes. Click Open Staging to show the Staging activity.
Maintenance
You can use the Maintenance tab to maintain the LFS. Click Renormalize Files to re-stage files through the LFS filter. Click Analyze Migration to scan the repository for file types that can be moved to LFS.