1
0
Fork 0
mirror of https://github.com/tldr-pages/tldr.git synced 2025-08-07 04:15:39 +02:00
tldr/pages/common/git-lfs.md
Managor db25f60eb1
git-*: convert options to longform and minor fixes (#13441)
Co-authored-by: spageektti <git@spageektti.cc>
Co-authored-by: Fazle Arefin <fazlearefin@users.noreply.github.com>
2024-08-31 13:06:48 +02:00

36 lines
717 B
Markdown

# git lfs
> Work with large files in Git repositories.
> More information: <https://git-lfs.com>.
- Initialize Git LFS:
`git lfs install`
- Track 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 {{--file|-f}} .lfsconfig lfs.url {{lfs_endpoint_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 {{remote_name}} {{branch_name}}`
- Fetch all Git LFS objects:
`git lfs fetch`
- Checkout all Git LFS objects:
`git lfs checkout`