Re: backup git repo on every commit
- From
Shawn O. Pearce <spearce@spearce.org>
- Date
- Oct 12, 2009, 18:37 UTC
- Message-ID
- <20091012183754.GP9261@spearce.org>
- In-Reply-To
- <20091012183504.GA3872@mrslave>
Christian Himpel <chressie@googlemail.com> wrote:
> 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?
There isn't a way to transfer reflogs, but one could rsync them over to the backup. Some records might be missing their SHA-1 in the backup if that particular object wasn't pushed there, but the reflog code is generally tolerant of those garbage records.
-- Shawn.