← 返回命令列表

Linux command

git-annex 命令

网络

复制后可按需替换文件名、目录或参数。

常用示例

Initialize git-annex

git annex init "[description]"

Add large file

git annex add [largefile.zip]

Get file content

git annex get [file]

Drop local copy

git annex drop [file]

Sync with remotes

git annex sync

说明

git-annex manages large files with git without storing file contents in git history. Files are replaced with symlinks to content stored in a separate annex, enabling version control of large datasets. The tool tracks which repositories have copies of which files, enabling distributed storage across local drives, servers, and cloud services. Content can be retrieved on demand with git annex get and removed locally with git annex drop. git-annex supports special remotes including Amazon S3, rsync, and many other backends, making it ideal for managing research datasets, media archives, and any large file collections.

参数

init _DESC_
Initialize repository for annex.
add _FILES_
Add files to annex.
get _FILES_
Download file content.
drop _FILES_
Remove local content.
sync
Synchronize with remotes.
whereis _FILE_
Show where content is stored.
copy _FILE_ --to _REMOTE_
Copy to remote.
--help
Display help information.

FAQ

What is the git-annex command used for?

git-annex manages large files with git without storing file contents in git history. Files are replaced with symlinks to content stored in a separate annex, enabling version control of large datasets. The tool tracks which repositories have copies of which files, enabling distributed storage across local drives, servers, and cloud services. Content can be retrieved on demand with git annex get and removed locally with git annex drop. git-annex supports special remotes including Amazon S3, rsync, and many other backends, making it ideal for managing research datasets, media archives, and any large file collections.

How do I run a basic git-annex example?

Run `git annex init "[description]"` in a terminal, then adjust file names, paths, flags, or remote targets for your system.

What does init _DESC_ do in git-annex?

Initialize repository for annex.