From mboxrd@z Thu Jan 1 00:00:00 1970 From: Sebastian Rose Subject: Re: Re: MORE: Using git via USB for personal org dir and other data files Date: Sat, 28 Feb 2009 21:00:34 +0100 Message-ID: <87r61ie3h9.fsf@kassiopeya.MSHEIMNETZ> References: <7bef1f890902272111l7611d157k984ca50251f20df6@mail.gmail.com> <871vti7klg.fsf@gollum.intra.norang.ca> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Return-path: Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1LdVJW-0003EO-DB for emacs-orgmode@gnu.org; Sat, 28 Feb 2009 14:57:34 -0500 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1LdVJV-0003DM-Iv for emacs-orgmode@gnu.org; Sat, 28 Feb 2009 14:57:34 -0500 Received: from [199.232.76.173] (port=53590 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1LdVJV-0003D3-DZ for emacs-orgmode@gnu.org; Sat, 28 Feb 2009 14:57:33 -0500 Received: from mail.gmx.net ([213.165.64.20]:49327) by monty-python.gnu.org with smtp (Exim 4.60) (envelope-from ) id 1LdVJU-00017f-Qr for emacs-orgmode@gnu.org; Sat, 28 Feb 2009 14:57:33 -0500 In-Reply-To: <871vti7klg.fsf@gollum.intra.norang.ca> (Bernt Hansen's message of "Sat, 28 Feb 2009 08:32:43 -0500") List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: Bernt Hansen Cc: emacs-orgmode Mailinglist Bernt Hansen writes: > Hi Alan, > > The best way to test drive all this stuff is just make some throw away > repos to play with. > > $ mkdir /tmp/junk > $ cd /path/to/your/org/git/repo > $ git clone --bare . /tmp/junk/org.git > $ cd /tmp/junk > $ git clone org.git home > $ git clone org.git work > > Now you have 3 repos in /tmp/junk > work - pretends to be your repo at work > home - pretends to be your repo at home > org.git - your bare repo on the usb stick I'll stay with monotone for this exact reason and purpos. It's great with USB, FAT and so on. No mess since three years now and it has the best of all user interfaces. So here, again, my monotone advertising: No thinking and reading and asking and than again reading... - just using. That's what a SCMS is for. The docs (just one PDF) will get you started after 10 minutes and you'll only have refer to the docs in very rare cases in the future because of mtns UI. You'll not even have to add your key file to ssh-agent by hand - monotone does that for you once it knows about it. Don't add something - just commit... I only use git with servers on the net, where it plays great. Also, the `git gui' is one of the best GUIs for RCSs around. For the USB stick case, it's worth to mention, that monotone needs no .mtn-ignore file, just to know, that *~ files have to be ignored. Permissions are handled (even if the stick is FAT formated) as well as empty directories. Simply the best designed RCS around IMHO. No need to say, that monotone handles copys and renames (with history). USB: $ cd org/ $ mtn -d /path/to/desired/localdb db init $ touch file.c $ mtn add file.c $ mtn commit -m'message' Now the USB: $ cp /path/to/desired/localdb /media/BLUE That's all. The first time we sync with /media/BLUE/database, we tell monotone, to use this repo as the default. No fiddling with `remotes', `origin'... $ mtn sync --set-default /media/BLUE/localdb Bang - you're done once for ever. # On the other computer: $ cp /media/BLUE/localdb /path/to/desired/localdb $ mtn -d /path/to/desired/localdb co org $ cd org # edit add and so on $ mtn commit -m'message' $ mtn sync --set-default /media/BLUE/localdb Later on just call $ mtn sync Databases are small (in my tests _much_ smaller than git or mercurial repos), can even be accessed using SQL (it's a sqlite database) and extend it's functionality through LUA (per workspace), trust is managed per workspace... One feature I like with monotone is the _MTN/log file. You may gather commit messages while working, which makes it realy easy to document your work in great detail and keeps you documenting them. Never forget to document a change or the reason for it anymore. There's a little elisp file I wrote make `add-change-log-entry' search for _MTN/log and use it. I've bound `mtn-add-change-log-entry' to F8 (see http://www.emacswiki.org/cgi-bin/emacs/sr-monotone.el). I even use monotone and git in conjunction a lot. Monotone for USB, git for the servers (since I have to). While git has great features, those are not what I need for my workflow. git always throws warnings and errors here, when I try to `git clone --bare' on FAT formated USB sticks (didn't try with the new 1.6.1.3 version, that's in Debian testing since a week). Regards, -- Sebastian Rose, EMMA STIL - mediendesign, Niemeyerstr.6, 30449 Hannover Tel.: +49 (0)511 - 36 58 472 Fax: +49 (0)1805 - 233633 - 11044 mobil: +49 (0)173 - 83 93 417 Http: www.emma-stil.de