DOKK / manpages / debian 11 / git-annex / git-annex-setkey.1.en
git-annex-setkey(1) General Commands Manual git-annex-setkey(1)

git-annex-setkey - sets annexed content for a key

git annex setkey key file

This plumbing-level command makes the content of the specified key be set to the specified file. The file is moved into the annex.

It's generally a better idea to use git-annex-reinject(1) instead of this command.

git-annex(1)

git-annex-reinject(1)

git-annex-dropkey(1)

Joey Hess <id@joeyh.name>