Unfortunately, this annoying message comes up every time:
Your name and email address were configured automatically based
on your username and hostname. Please check that they are accurate.
You can suppress this message by setting them explicitly:
git config --global user.name "Your Name"
git config --global user.email [email protected]
If I followed the advice git was giving me, I'd lose the ability to
distinguish which user on a shared machine made the changes. I find
etckeeper particularly helpful on servers that are administered jointly
by several people. It's so easy for each of us to make configuration
changes and then forget to log them or tell the others about them. Maybe
this is the use case you are looking for?
A better solution would be, as Frédéric says, for etckeeper (in
50vcs-commit) not to set GIT_AUTHOR_NAME/EMAIL if they are already set.
That way I can set them in my environment and configure sudo not to nuke
them. However, this means that etckeeper doesn't work optimally out of
the box, but instead requires the user to make changes to their system.
It's not that etckeeper isn't accurately recording who made the commits,
but it does appear to be abusing git given the way git is complaining.
--
To UNSUBSCRIBE, email to [email protected]
with a subject of "unsubscribe". Trouble? Contact [email protected]