From mboxrd@z Thu Jan 1 00:00:00 1970 From: Karl Voit Subject: OT: syncing computers with git (was: Best way to set up Org mode with MobileOrg over Dropbox) Date: Fri, 4 Nov 2011 13:38:06 +0100 Message-ID: <2011-11-04T13-36-49@devnull.Karl-Voit.at> References: <87wrbgvnye.fsf@univie.ac.at> Reply-To: news1142@Karl-Voit.at Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Return-path: Received: from eggs.gnu.org ([140.186.70.92]:52036) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RMJ2X-0002hS-UC for emacs-orgmode@gnu.org; Fri, 04 Nov 2011 08:38:38 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1RMJ2V-000217-OP for emacs-orgmode@gnu.org; Fri, 04 Nov 2011 08:38:33 -0400 Received: from lo.gmane.org ([80.91.229.12]:45610) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RMJ2V-0001ys-GZ for emacs-orgmode@gnu.org; Fri, 04 Nov 2011 08:38:31 -0400 Received: from list by lo.gmane.org with local (Exim 4.69) (envelope-from ) id 1RMJ2S-000303-PS for emacs-orgmode@gnu.org; Fri, 04 Nov 2011 13:38:28 +0100 Received: from mail.michael-prokop.at ([88.198.6.110]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Fri, 04 Nov 2011 13:38:28 +0100 Received: from news1142 by mail.michael-prokop.at with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Fri, 04 Nov 2011 13:38:28 +0100 List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: emacs-orgmode@gnu.org * Gregor Kappler wrote: > > I am using git to sync several laptops and Desktop computers. > > Every 5 minutes a cronjob runs a shell script that automatically runs > =git pull= -- and =git add= on org files as well files listed in the > =.gitcroncommit= file. The commit message is comprised of the filenames > of all changed files as well as a prefix for detection in git logs > ("cron autocommit", parameterized) and the hostname. > > The auto commit is performed only if > - no files have been staged manually. > - git is in the auto branch (where mine is always). This prevents > cluttering the git history of the master branch. If you want to switch from a pulling to an interrupt system, you might be interested in http://www.mayrhofer.eu.org/dvcs-autosync -- Karl Voit Hallo, mein Name ist Web 2.0. Gib mir dein Adressbuch und lass mich Emails lesen