DOKK / manpages / debian 12 / git-annex / git-annex-reinit.1.en
git-annex-reinit(1) General Commands Manual git-annex-reinit(1)

git-annex-reinit - initialize repository, reusing old UUID

git annex reinit uuid|description

Normally, initializing a repository generates a new, unique identifier (UUID) for that repository. Occasionally it may be useful to reuse a UUID -- for example, if a repository got deleted, and you're setting it back up.

Use this with caution; it can be confusing to have two existing repositories with the same UUID.

Make sure you run git annex fsck after changing the UUID of a repository to make sure location tracking information is recorded correctly.

Like git annex init, this attempts to enable any special remotes that are configured with autoenable=true.

git-annex-common-options(1) can be used.

git-annex(1)

git-annex-init(1)

git-annex-fsck(1)

Joey Hess <id@joeyh.name>