* Gregor Kappler <g.kapp...@gmx.net> 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


Reply via email to