git-annex-reinit(1)

πŸ“¦
version 10.20261026 Β· 3 versions
, in alpine 3.24, arch rolling, debian trixie, epel 10, fedora 43, fedora 44, nixos 26.05, nixpkgs unstable, opensuse-leap 16.0, ubuntu noble, ubuntu questing, ubuntu resolute, ubuntu stonking

πŸ’– git-annex-reinit πŸ’–

okay bestie, welcome to the git-annex-reinit(1) page, straight out of the General Commands Manual πŸŽ€ this is the one where we give a repo its old identity back, no cap.


✨ NAME ✨

git-annex-reinit β€” initialize repository, reusing old UUID πŸ¦‹


🌸 SYNOPSIS 🌸

git annex reinit uuid|description

like, that's the whole vibe. you hand it a uuid or a description and it does the thing πŸ’…


πŸ’œ DESCRIPTION πŸ’œ

so here's the tea β˜• normally when you initialize a repo, git-annex makes it a brand new unique identifier (UUID), like a little birth certificate for that repo. cute, right? 🍼

but occasionally it's actually useful to reuse a UUID β€” for example, if a repository got deleted and you're setting it back up. it's giving "hey remember me? it's me again" 😭✨

⚠️ use this with caution, bestie!! it can get confusing to have two existing repositories with the same UUID. two girlies, one name, one UUID... it's a mess fr fr πŸ’€

also, pls pls pls make sure you run git annex fsck after changing the UUID of a repository, so that location tracking information gets recorded correctly. do not skip this step, i am literally begging πŸ™

and like git annex init, this attempts to enable any special remotes that are configured with autoenable=true. so the autoenable girlies get switched on automatically 🌈


πŸŽ€ OPTIONS πŸŽ€

  • --json β€” turns on JSON output πŸ’» this one is intended to be parsed by programs that use git-annex, so it's for the robot besties, not for reading with your eyeballs.
  • --json-error-messages β€” messages that would normally be output to standard error get included in the JSON instead. no more sad stderr screen, everything goes in the JSON box πŸ“¦βœ¨

also, the git-annex-common-options(1) can be used. go wild 🫢


πŸ”₯ SEE ALSO πŸ”₯

(the fsck one is there for a REASON, see above, iykyk πŸ‘€)


πŸ‘‘ AUTHOR πŸ‘‘

Joey Hess <id@joeyh.name> πŸ’– absolute legend, main character energy, we stan.


and that's the whole page bestie!! this was the git-annex-reinit(1) man page from the General Commands Manual β€” same facts, way more sparkle. now go reinit responsibly and remember to fsck afterward πŸŒΈπŸ’…πŸ¦‹