emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Bernt Hansen <bernt@norang.ca>
To: Paul Mead <paul.d.mead@gmail.com>
Cc: emacs-orgmode@gnu.org
Subject: Re: Using Git to update more than one machine (one without	network access)
Date: Wed, 25 Feb 2009 13:41:25 -0500	[thread overview]
Message-ID: <87eixmwe96.fsf@gollum.intra.norang.ca> (raw)
In-Reply-To: <loom.20090225T181830-580@post.gmane.org> (Paul Mead's message of "Wed\, 25 Feb 2009 18\:19\:20 +0000 \(UTC\)")

Paul Mead <paul.d.mead@gmail.com> writes:

> Ian Barton <lists <at> manor-farm.org> writes:
>> Use git clone to create a repo on your usb stick.
>> Pull changes from Carsten' git repo to your usb stick.
>> Pull changes from your usb stick to both your work and home computers. 
>> In other words your usb stick is your own master repo.
> It works! Well, in the ansence of any changes to pull it seems to work anyway.

Hi Paul,

I suggest you put bare repositories on the USB stick.

On your home machine that has internet access

  $ git pull # to update from git.or.cz

Create a bare clone (once) of your repo on the usb stick

  $ git clone --bare . /path/to/usb/org-mode.git

Define a remote repo on the USB stick

  $ git remote add usb /path/to/usb/org-mode.git
  $ git push usb [master and any other branches you want]

After that you can 

  $ git fetch usb on your workstation to update any new commits on the
    usb stick

  $ git push # update any existing branches on the usb stick

On your work machine just clone the USB repo

  $ git clone /path/to/usb/org-mode.git

and you should be all set.

I have all my active repos as bare clones on my 4GB USB stick including
git.git, org-mode.git, my org files, and a bunch of other projects - so
when I'm leaving I grab my laptop, load the USB stick from my
workstation with a script (usb-git-push) and then walk out the door with
my laptop and my USB stick.

I can pull from the USB stick into my laptop after I'm gone.

Synching the other way is similar.  On the laptop push to the USB stick,
take the stick to my workstation and git fetch from it.  Then I merge
the usb/master and master (and other topic branches) appropriately.


  reply	other threads:[~2009-02-25 18:41 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-02-25 16:38 Using Git to update more than one machine (one without network access) Paul Mead
2009-02-25 16:58 ` David Thole
2009-02-25 17:12   ` Paul Mead
2009-02-25 17:10 ` Nick Dokos
2009-02-25 17:23   ` Paul Mead
2009-02-25 17:41 ` Ian Barton
2009-02-25 18:09   ` Paul Mead
2009-02-25 18:19   ` Paul Mead
2009-02-25 18:41     ` Bernt Hansen [this message]
2009-02-25 18:56       ` Paul Mead
2009-02-25 19:31         ` Bernt Hansen
2009-02-25 21:12           ` Paul Mead

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:

  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=87eixmwe96.fsf@gollum.intra.norang.ca \
    --to=bernt@norang.ca \
    --cc=emacs-orgmode@gnu.org \
    --cc=paul.d.mead@gmail.com \


* 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


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).