1
0
Fork 0
mirror of https://github.com/tldr-pages/tldr.git synced 2025-04-22 01:02:09 +02:00

git-annex: add page (#4421)

This commit is contained in:
nath1as 2020-10-06 13:53:35 +02:00 committed by GitHub
parent f4c4ce22cc
commit 68015e4699
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

29
pages/common/git-annex.md Normal file
View file

@ -0,0 +1,29 @@
# git annex
> Manage files with git, without checking their contents in.
> When a file is annexed, its content is moved into a key-value store, and a symlink is made that points to the content.
> More information: <https://git-annex.branchable.com>.
- Help:
`git annex help`
- Initialize a repo with git annex:
`git annex init`
- Add a file:
`git annex add {{path/to/file_or_directory}}`
- Show the current status of a file or directory:
`git annex status {{path/to/file_or_directory}}`
- Synchronize a local repository with a remote:
`git annex {{remote}}`
- Get a file or directory:
`git annex get {{path/to/file_or_directory}}`