2011-03-03 19:44:01 +00:00
|
|
|
Due to popular demand, git-annex can now be used with bare repositories.
|
|
|
|
|
2011-03-04 01:56:03 +00:00
|
|
|
So, for example, you can stash a file away in the origin:
|
|
|
|
`git annex move mybigfile --to origin`
|
2011-03-03 19:59:16 +00:00
|
|
|
|
|
|
|
Of course, for that to work, the bare repository has to be on a system with
|
2011-03-03 20:40:55 +00:00
|
|
|
[[git-annex-shell]] installed. If "origin" is on GitWeb, you still can't
|
|
|
|
use git-annex to store stuff there.
|
2011-03-03 19:44:01 +00:00
|
|
|
|
2011-03-03 19:49:53 +00:00
|
|
|
Known to work ok:
|
2011-03-03 19:44:01 +00:00
|
|
|
|
|
|
|
* `git annex move --to` and `--from`, when pointed at a bare repository.
|
|
|
|
* `git annex copy` ditto.
|
|
|
|
* `git annex drop` can check that a bare repository has a copy of data
|
|
|
|
that is being dropped.
|
|
|
|
* `git annex get` can transfer data from a bare repository.
|
|
|
|
|
2011-03-03 20:40:55 +00:00
|
|
|
There are a few caveats to keep in mind when using bare repositories:
|
2011-03-03 19:44:01 +00:00
|
|
|
|
2011-03-03 20:40:55 +00:00
|
|
|
* Some subcommands, like `fsck`, `trust`, `unused` and `fromkey`,
|
|
|
|
cannot be run in a bare repository. Those subcommands will
|
|
|
|
refuse to do anything.
|
|
|
|
* `git annex setkey` is a plumbing-level command; using it manually
|
2011-03-03 19:44:01 +00:00
|
|
|
to add content to a bare repository is not recommended, since there
|
2011-03-03 20:40:55 +00:00
|
|
|
will be no record that the content is stored there.
|