"Santi Béjar" <sbejar@xxxxxxxxx> writes: >> > I would still need something to prevent doing a commit without a >> > locally specified name/email. >> >> Yes, but that something could simply be "echo '[user] name' >> >.git/config" in that hook, for example. > > But I want a different locally specified name in each repository, > because I use different emails for different projects > (private/work/...). You changed your mind then? You said you wanted to have something that prevents a commit from being made immediately after git-init before per-repo user.name is properly configured. Doesn't that echo achieve that goal? -- 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