Re: Tracability in git commits
- From
Shawn O. Pearce <spearce@spearce.org>
- Date
- May 1, 2008, 00:28 UTC
- Message-ID
- <20080501002827.GX29771@spearce.org>
- In-Reply-To
- <20080430194651.GC23672@genesis.frugalware.org>
Miklos Vajna <vmiklos@frugalware.org> wrote:
> On Thu, May 01, 2008 at 01:33:53AM +0800, Ping Yin <pkufranky@gmail.com> wrote: > > I don't find reflog for bare repository, or must i enable it manually? > > Right, reflog is disabled by default for bare repos.
`git config core.logAllRefUpdates true` right after you make the repository solves that nicely. I actually have a script that I use to make a new bare central repo:
#!/bin/sh git --git-dir="$1" init && git --git-dir="$1" config core.logAllRefUpdates true || exit
;-)
-- Shawn.