git lfs: add page (#3302)
This commit is contained in:

committed by
Lucas Gabriel Schneider

parent
c82f1e5497
commit
0d96f78550
28
pages/common/git-lfs.md
Normal file
28
pages/common/git-lfs.md
Normal file
@@ -0,0 +1,28 @@
|
|||||||
|
# git lfs
|
||||||
|
|
||||||
|
> Work with large files in Git repositories.
|
||||||
|
> More information: <https://git-lfs.github.com>.
|
||||||
|
|
||||||
|
- Initialise 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 -f .lfsconfig lfs.url {{lfs_endpoint_url}}`
|
||||||
|
|
||||||
|
- List tracked patterns:
|
||||||
|
|
||||||
|
`git lfs track`
|
||||||
|
|
||||||
|
- List tracked files that have been commited:
|
||||||
|
|
||||||
|
`git lfs ls-files`
|
||||||
|
|
||||||
|
- Push all LFS objects to the remote server (useful if errors are encountered):
|
||||||
|
|
||||||
|
`git lfs push --all {{remote_name}} {{branch_name}}`
|
Reference in New Issue
Block a user