emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Matthew Lundin <mdl@imapmail.org>
To: Bernt Hansen <bernt@norang.ca>
Cc: emacs-orgmode Mailinglist <emacs-orgmode@gnu.org>
Subject: Re: Re: syncing org-mode files on three unconnected machines?
Date: Mon, 09 Feb 2009 11:25:39 -0600	[thread overview]
Message-ID: <8763jj34ks.fsf@fastmail.fm> (raw)
In-Reply-To: <87ljsfli5y.fsf@gollum.intra.norang.ca> (Bernt Hansen's message of "Mon, 09 Feb 2009 10:54:49 -0500")


Hi Alan

Bernt Hansen <bernt@norang.ca> 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

 

      reply	other threads:[~2009-02-09 17:25 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-02-09  3:43 syncing org-mode files on three unconnected machines? Alan E. Davis
2009-02-09  6:39 ` Carsten Dominik
2009-02-09  7:22 ` Thierry Volpiatto
     [not found] ` <e0e1fe620902090012j54286429v509cc2e5892225bd@mail.gmail.com>
     [not found]   ` <7bef1f890902090448w452249c7y95f956999c00fc58@mail.gmail.com>
2009-02-09 12:50     ` Alan E. Davis
2009-02-09 14:49       ` Manish
2009-02-09 15:54       ` Bernt Hansen
2009-02-09 17:25         ` Matthew Lundin [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.orgmode.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=8763jj34ks.fsf@fastmail.fm \
    --to=mdl@imapmail.org \
    --cc=bernt@norang.ca \
    --cc=emacs-orgmode@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).