tldr/pages/common/git-annex.md

30 lines
644 B
Markdown
Raw Permalink Normal View History

2020-10-06 12:53:35 +01:00
# git annex
2021-01-07 14:06:38 +00:00
> Manage files with Git, without checking their contents in.
2020-10-06 12:53:35 +01:00
> 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`
2021-01-07 14:06:38 +00:00
- Initialize a repo with Git annex:
2020-10-06 12:53:35 +01:00
`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}}`