[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[O] OT: syncing computers with git (was: Best way to set up Org mode wit
From: |
Karl Voit |
Subject: |
[O] 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 |
User-agent: |
slrn/0.9.9 (Linux) |
* Gregor Kappler <address@hidden> 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