Skip to content

Instantly share code, notes, and snippets.

@janttsu
janttsu / find_annexed.sh
Last active March 16, 2026 17:21
Git-annex duplicate finder
#!/bin/bash
# =============================================================================
# find_annexed.sh - Find and reinject known git-annex files across multiple repos
#
# Run from the "upper" directory that contains all your annex repos:
# ./find_annexed.sh /path/to/files/to/scan
#
# The script automatically finds EVERY git-annex repo under the current directory.
# =============================================================================