From mboxrd@z Thu Jan 1 00:00:00 1970 From: Matthew Lundin Subject: Re: Re: syncing org-mode files on three unconnected machines? Date: Mon, 09 Feb 2009 11:25:39 -0600 Message-ID: <8763jj34ks.fsf@fastmail.fm> References: <7bef1f890902081943n2417dde4uc923053fdf279a47@mail.gmail.com> <7bef1f890902090448w452249c7y95f956999c00fc58@mail.gmail.com> <7bef1f890902090450j2691d2b1nac24d608ac021875@mail.gmail.com> <87ljsfli5y.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 1LWZsp-0000p5-U0 for emacs-orgmode@gnu.org; Mon, 09 Feb 2009 12:25:23 -0500 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1LWZso-0000oI-KK for emacs-orgmode@gnu.org; Mon, 09 Feb 2009 12:25:22 -0500 Received: from [199.232.76.173] (port=53799 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1LWZso-0000nv-94 for emacs-orgmode@gnu.org; Mon, 09 Feb 2009 12:25:22 -0500 Received: from out1.smtp.messagingengine.com ([66.111.4.25]:43583) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1LWZso-00083i-0z for emacs-orgmode@gnu.org; Mon, 09 Feb 2009 12:25:22 -0500 In-Reply-To: <87ljsfli5y.fsf@gollum.intra.norang.ca> (Bernt Hansen's message of "Mon, 09 Feb 2009 10:54:49 -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 Hi Alan Bernt Hansen writes: > > > I've never done this myself but it should be possible to put a bare git > repository on the USB stick. Then you push/pull changes to it when > moving from one machine to the next. > > It would go something like this: (untested) > > On the USB stick - initialize a bare repository > > cd /path/to/usb > git clone --bare /path/to/your/repo > I do precisely what Bernt outlines here so clearly and it works great. I keep a bare repo on a USB drive and push and pull changes to it. (Magit, an emacs mode for managing git commits and history, works wonders here.) I haven't forgotten my USB drive yet, but if you're worried about that, you could always put the repository on a server. Also, if I were to forget the USB drive, I would simply create a branch and email myself a patch or patches at the end of the day and then merge them with the working copy on one of the other machines. The beauty of git (or other distributed version control systems) is that your complete history is in multiple places, so if you lose the USB drive, you can simply get a new one and put a bare repository on that. (Of course, if you're worried about data security, I wouldn't recommend an unencrypted USB drive.) Best, Matt