From: Christian Himpel Date: Mon, 12 Oct 2009 14:08:38 GMT Subject: Re: backup git repo on every commit Message-ID: <20091012140838.GB29984@lamagra.informatik.uni-ulm.de> In-Reply-To: <194a2c240910120641sccf0e55xef4226269df78864@mail.gmail.com> On Mon, Oct 12, 2009 at 08:41:15AM -0500, Israel Garcia wrote: > Which is the simplest way to backup a git repository after every commit? Using githooks(5) you can put a simple post-commit script in .git/hooks. Maybe something like: -->8-- #!/bin/sh cp -a `pwd` `pwd`.`date +%s` --8<-- Don't forget to make the script executable. Regards, chressie