Create a repository on GitLab

  1. Clone repo

    git clone git@gitlab.com:group/repo.git

    git clonne https://gitlab.com/acbg/repo.git

    git clone ~/repo.git

  2. Init annex

    cd repo; git annex init 'description of the annex'

  3. Copy, remove, modify files

  4. Add files…

    git annex add .

  5. …and commit

    git commit -m 'Initial commit'

  6. Change filenames or modify archives

    git mv ab.jpg a.jpg

  7. Commit again

    git commit -m 'Changed file name'

  8. Sync master and git-annex branches, not files content

    git push origin master git-annex

  9. Sync file contents

    git annex sync --content

Another checkout, other location

  1. Clone the repo

    git clone git@gitlab.com:group(or login)/repo.git

  2. Enter the repo

    cd repo

  3. Init a new annex

    git annex init 'location'

  4. Get files

  5. Get one file

    git annex get debian.iso

  6. Get all the content

    git annex sync --content