From: Ping Yin Date: Thu, 01 May 2008 05:09:45 GMT Subject: Re: Tracability in git commits Message-ID: <46dff0320804302209o2af9d630s48564a9b68c24ec1@mail.gmail.com> In-Reply-To: <20080501002827.GX29771@spearce.org> On Thu, May 1, 2008 at 8:28 AM, Shawn O. Pearce wrote: > `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 I wonder why not make it the default behaviour. If someone push the wrong commit to the bare repository (for example, with 'git push -f'), there is no easy way to recover without reflog. So as a solution, i would rather put this config to ~/.gitconfig -- Ping Yin