I have a git repository with lots of revisions. I'm the only developer, so all commits are from me so far. Somehow, I ended up with a single commit that has no ident information. I tried running:
git filter-branch --env-filter '
>> GIT_AUTHOR_NAME=myusername
>> GIT_AUTHOR_EMAIL=myuseremail@website.com
>> export GIT_AUTHOR_NAME
>> export GIT_AUTHOR_EMAIL
but I keep getting this error:
rewrite deadbeefdeadbeefdeadbeefdeadbeefdeadbeef (112/123)fatal: empty ident name (for ()) not allowed
could not write rewritten commit
rm: cannot remove '/c/some/directory/that/leads/to/my/repository/.git-rewrite/revs': Permission denied
rm: cannot remove directory '/c/some/directory/that/leads/to/my/repository/.git-rewrite': Directory is empty
what am I doing wrong? Everything I see online about ident tells you how to fix commits before you make them: what do you do after the commit is already through?