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 install
- Track files that match a
glob:
git lfs track ''
- Change the Git LFS endpoint URL (useful if the LFS server is separate from the Git server):
git config .lfsconfig lfs.url
- List tracked patterns:
git lfs track
- List tracked files that have been committed:
git lfs ls-files
- Push all Git LFS objects to the remote server (useful if errors are encountered):
git lfs push --all
- Fetch all Git LFS objects:
git lfs fetch
- Replace pointer files with actual Git LFS objects:
git lfs checkout
来源:tldr-pages contributors · 作者与贡献记录 · CC BY 4.0。离线整理了版式、链接和媒体显示。
