![Joey Hess](/assets/img/avatar_default.png)
* unannex, uninit: Avoid committing after every file is unannexed, for massive speedup. * --notify-finish switch will cause desktop notifications after each file upload/download/drop completes (using the dbus Desktop Notifications Specification) * --notify-start switch will show desktop notifications when each file upload/download starts. * webapp: Automatically install Nautilus integration scripts to get and drop files. * tahoe: Pass -d parameter before subcommand; putting it after the subcommand no longer works with tahoe-lafs version 1.10. (Thanks, Alberto Berti) * forget --drop-dead: Avoid removing the dead remote from the trust.log, so that if git remotes for it still exist anywhere, git annex info will still know it's dead and not show it. * git-annex-shell: Make configlist automatically initialize a remote git repository, as long as a git-annex branch has been pushed to it, to simplify setup of remote git repositories, including via gitolite. * add --include-dotfiles: New option, perhaps useful for backups. * Version 5.20140227 broke creation of glacier repositories, not including the datacenter and vault in their configuration. This bug is fixed, but glacier repositories set up with the broken version of git-annex need to have the datacenter and vault set in order to be usable. This can be done using git annex enableremote to add the missing settings. For details, see http://git-annex.branchable.com/bugs/problems_with_glacier/ * Added required content configuration. * assistant: Improve ssh authorized keys line generated in local pairing or for a remote ssh server to set environment variables in an alternative way that works with the non-POSIX fish shell, as well as POSIX shells. # imported from the archive
75 lines
2.8 KiB
Markdown
75 lines
2.8 KiB
Markdown
If you are starting from nothing (no existing `git` or `git-annex` repository) and want to use a server as a centralised repository, try the following steps.
|
|
|
|
On the server where you'll hold the "master" repository:
|
|
|
|
server$ cd /one/git
|
|
server$ mkdir m
|
|
server$ cd m
|
|
server$ git init --bare
|
|
Initialized empty Git repository in /one/git/m/
|
|
server$ git annex init origin
|
|
init origin ok
|
|
server$
|
|
|
|
Clone that to the laptop:
|
|
|
|
laptop$ cd /other
|
|
laptop$ git clone ssh://server//one/git/m
|
|
Cloning into 'm'...
|
|
Warning: No xauth data; using fake authentication data for X11 forwarding.
|
|
remote: Counting objects: 5, done.
|
|
remote: Compressing objects: 100% (3/3), done.
|
|
remote: Total 5 (delta 0), reused 0 (delta 0)
|
|
Receiving objects: 100% (5/5), done.
|
|
warning: remote HEAD refers to nonexistent ref, unable to checkout.
|
|
|
|
laptop$ cd m
|
|
laptop$ git annex init laptop
|
|
init laptop ok
|
|
laptop$
|
|
|
|
Merge the `git-annex` repository (this is the bit that is often
|
|
overlooked!):
|
|
|
|
laptop$ git annex merge
|
|
merge . (merging "origin/git-annex" into git-annex...)
|
|
ok
|
|
laptop$
|
|
|
|
Add some content:
|
|
|
|
laptop$ git annex addurl http://kitenet.net/~joey/screencasts/git-annex_coding_in_haskell.ogg
|
|
"kitenet.net_~joey_screencasts_git-annex_coding_in_haskell.ogg"
|
|
addurl kitenet.net_~joey_screencasts_git-annex_coding_in_haskell.ogg (downloading http://kitenet.net/~joey/screencasts/git-annex_coding_in_haskell.ogg ...) --2011-12-15 08:13:10-- http://kitenet.net/~joey/screencasts/git-annex_coding_in_haskell.ogg
|
|
Resolving kitenet.net (kitenet.net)... 2001:41c8:125:49::10, 80.68.85.49
|
|
Connecting to kitenet.net (kitenet.net)|2001:41c8:125:49::10|:80... connected.
|
|
HTTP request sent, awaiting response... 200 OK
|
|
Length: 39362757 (38M) [audio/ogg]
|
|
Saving to: `/other/m/.git/annex/tmp/URL--http&c%%kitenet.net%~joey%screencasts%git-annex_coding_in_haskell.ogg'
|
|
|
|
100%[======================================>] 39,362,757 2.31M/s in 17s
|
|
|
|
2011-12-15 08:13:27 (2.21 MB/s) - `/other/m/.git/annex/tmp/URL--http&c%%kitenet.net%~joey%screencasts%git-annex_coding_in_haskell.ogg' saved [39362757/39362757]
|
|
|
|
(checksum...) ok
|
|
(Recording state in git...)
|
|
laptop$ git commit -m 'See Joey play.'
|
|
[master (root-commit) 106e923] See Joey play.
|
|
1 files changed, 1 insertions(+), 0 deletions(-)
|
|
create mode 120000 kitenet.net_~joey_screencasts_git-annex_coding_in_haskell.ogg
|
|
laptop$
|
|
|
|
All fine, now push it back to the centralised master:
|
|
|
|
laptop$ git push
|
|
Counting objects: 20, done.
|
|
Delta compression using up to 4 threads.
|
|
Compressing objects: 100% (11/11), done.
|
|
Writing objects: 100% (18/18), 1.50 KiB, done.
|
|
Total 18 (delta 1), reused 1 (delta 0)
|
|
To ssh://server//one/git/m
|
|
3ba1386..ad3bc9e git-annex -> git-annex
|
|
laptop$
|
|
|
|
You can add more "client" repositories by following the `laptop`
|
|
sequence of operations.
|