Re: backup git repo on every commit
- From
Christian Himpel <chressie@googlemail.com>
- Date
- Oct 12, 2009, 18:35 UTC
- Message-ID
- <20091012183504.GA3872@mrslave>
- In-Reply-To
- <20091012141544.GF9261@spearce.org>
On Mon, Oct 12, 2009 at 07:15:44AM -0700, Shawn O. Pearce wrote:
Show 9 quoted lines
> Israel Garcia <igalvarez@gmail.com> wrote: > git remote add --mirror backup you@another.host:path/to/backup.git > > cat >.git/hooks/post-commit > #!/bin/sh > git push backup > ^D > > chmod a+x .git/hooks/post-commit
Since this is meant as a backup, is there also a sane way to push the reflog entries as well? Or is it okay just to copy .git/logs to the backup repository?
Thanks, chressie