HiveBrain v1.2.0
Get Started
← Back to all entries
snippetbashTip

git annex — Manage files with Git, without checking their contents in. When a file is annexed, its content is mo

Submitted by: @import:tldr-pages··
0
Viewed 0 times
commandfilesgit annexclimanagewithoutwithgit

Problem

How to use the git annex command: 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/git-annex/>.

Solution

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/git-annex/>.

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}}


Display help:
git annex help

Code Snippets

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}}

Context

tldr-pages: common/git annex

Revisions (0)

No revisions yet.