Converting a non-bare git-annex into a bare one

Joey Hess joey at
Mon Jun 13 02:45:32 CEST 2011

Joey Hess wrote:
> Richard Hartmann wrote:
> > I made a pretty stupid mistake with a new repo... I created it
> > non-bare. Obviously, the first step to converting it into a bare one
> > is
> > 
> >   git clone --bare -l <from> <to>
> > 
> > followed by moving the bits & pieces of git-annex into the right
> > places. As the directory structure of bare and non-bare git annex
> > repos seems to be different (.git-annex/ vs annex/ with different
> > content) and as I want to make _sure_ there won't be any problems down
> > the road, I am wondering if there is a guide or checklist to properly
> > converting between that two.
> You can move .git-annex/ into annex/ in the bare repository. Also copy

Eh, I meant to say you can move .git/annex/ into annex/ in the bare
repository. The .git-annex directory is not used with a bare repository.

see shy jo
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 828 bytes
Desc: Digital signature
URL: <>

More information about the vcs-home mailing list