Debian testing or unstable

Debian unstable and testing are usually fairly up to date, so this should be enough:

sudo apt install git-annex

Standalone backports for all releases

If the version shipped with Debian is too old, the NeuroDebian team provides a standalone build package that is regularly updated and that should work across all releases of Debian.