---
name: "git-annex-setkey"
section: "1"
platform: "linux"
package: "git-annex"
version: "10.20261026-1"
release: "Arch Linux 2026-11-01"
platforms: ["linux"]
url: "https://new.carta.tech/git-annex-setkey"
---

# git-annex-setkey(1)

sets annexed content for a key

## NAME

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

## SYNOPSIS

git annex setkey key file

## DESCRIPTION

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)](/git-annex-reinject/1.md) instead of this command.

## OPTIONS

- The [git-annex-common-options(1)](/git-annex-common-options/1.md) can be used.

  -

  ## SEE ALSO

[git-annex(1)](/git-annex/1.md)

[git-annex-reinject(1)](/git-annex-reinject/1.md)

[git-annex-dropkey(1)](/git-annex-dropkey/1.md)

## AUTHOR

Joey Hess \<id@joeyh.name\>
