snippetbashTip
git lfs — Work with large files in Git repositories. More information: <https://github.com/git-lfs/git-lfs/tre
Viewed 0 times
commandlargefilescligit lfswithworkgit
Problem
How to use the
git lfs command: Work with large files in Git repositories. More information: <https://github.com/git-lfs/git-lfs/tree/main/docs>.Solution
git lfs — Work with large files in Git repositories. More information: <https://github.com/git-lfs/git-lfs/tree/main/docs>.Initialize Git LFS:
git lfs installTrack files that match a glob:
git lfs track '{{*.bin}}'Change the Git LFS endpoint URL (useful if the LFS server is separate from the Git server):
git config {{[-f|--file]}} .lfsconfig lfs.url {{lfs_endpoint_url}}List tracked patterns:
git lfs trackList tracked files that have been committed:
git lfs ls-filesPush all Git LFS objects to the remote server (useful if errors are encountered):
git lfs push --all {{remote_name}} {{branch_name}}Fetch all Git LFS objects:
git lfs fetchReplace pointer files with actual Git LFS objects:
git lfs checkoutCode Snippets
Initialize Git LFS
git lfs installTrack files that match a glob
git lfs track '{{*.bin}}'Change the Git LFS endpoint URL (useful if the LFS server is separate from the Git server)
git config {{[-f|--file]}} .lfsconfig lfs.url {{lfs_endpoint_url}}List tracked patterns
git lfs trackList tracked files that have been committed
git lfs ls-filesContext
tldr-pages: common/git lfs
Revisions (0)
No revisions yet.