On Thu, May 1, 2008 at 8:28 AM, Shawn O. Pearce <spearce@xxxxxxxxxxx> 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 -- To unsubscribe from this list: send the line "unsubscribe git" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html