I have a local repo on a computer with some folder on the path /computer1/annex/
Then I tried to run git annex on my phone and added a remote ssh repo syncing to /computer1/annex/mobile/ from my mobile's picture folder.
But the files ending up there are: ls /computer1/annex/mobile/ annex branches config description HEAD hooks info objects refs
I chose "full backup"
Why dont I see my pictures there, even if they are hiding in the metadata ?
/computer1/annex/
was already an annex repository you should have synced the phone to that, not to a new bare repository at/computer1/annex/mobile/
Thanks Justin, but that wont work. Even pointing out a normal, non-bare repo and then adding it as a ssh remote will convert it into a bare repo. I confirmed that, and then I read this post:
that states that
I even tried to do git remote add B ssh://machineB:/~/annex but to no avail, the created annex on machine B becomes a bare repo.
The only way to do it for me was to do the following, Assume my cellphone is device A, and my desktop is device B:
On machine B:
On machine A:
now pictures are synced to the computer in direct, non-bare format every 5 minutes. I have spent literally days on this and now I finally nailed it in a crude but working fashion.
I have double-checked, and when I already have an existing, non-bare repository, pointing the webapp at it over ssh keeps it as a non-bare repository. As I would expect.
I didn't try this because it's such a violation of the way git actually works that I just can't believe it could happen. If it does, you've found the git bug of the year.
But, I think you just got confused about whether the repository existed before, or gave the wrong path to the existing repository which would result in a new, bare repository being created in the location you told it.
If you really think this happens, show a transcript with enough details for me, or the git developers, to reproduce the problem.