git-annex-reinit(1)

git-annex-reinit1

Initialize repository, reusing old uuid

Usage

git {annex reinit uuid | description}

Overview

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.

Options

--json

Enable JSON output. This is intended to be parsed by programs that use git-annex.

--json-error-messages

Messages that would normally be output to standard error are included in the JSON instead.

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

Releases

6 releases since Debian 9 (Stretch); the text changed 3 times.

  1. 9
  2. 10–11
  3. 12
  4. 13–Arch

--json since Debian 13 (Trixie); --json-error-messages since Debian 13 (Trixie).

Author

Joey Hess <[email protected]>

From git-annex 10.20261026-1 in Arch Linux 2026-11-01. Parsed by carta from the page's man source.