Wanted to share some Admin nightmares;)
Is there a way to correct a stupid error when few commits were made
under username Your Name and the same kind of stub email address
instead of normal name?
There are a few ways (that I know of) to fix this.
If you haven't pushed yet you can use "git rebase -i"  and edit the
commit with "git commit --amend --reset-author" to fix up your local
branch. Note that --reset-author is a fairly recent addition to git
but the --author="name <email>" option is available for older
If no-one has cloned/pulled from that repository you can use "git
filter-branch"  with an environment filter to update the name.
Using filter branch (or anything else that re-writes history) is a
last resort as it will cause problems for anyone that has cloned your
The preferred, non-destructive, method would be to include a .mailmap
file  which can be used to remap authors names and email addresses.
Some of the git tools can be told to ignore the mailmap so that stub
email address will still be visible if people know where to look but
thats usually fine unless you _really_ want to hide an email address
for some reason.