After doing the
git cvsimport
my previous commits are listed belonging to user “user ” (user is my unix username).
How can I tell git that these commits are mine (i.e., define a mapping from “user” to my “First Lastname <first@last.com>” git-user)?
You can use the
-Aoption togit cvsimportto map user names in CVS toFull Name <email@address>in git. The man page says:If you don’t want to rerun the import, you can have a look at this answer, which tells you how to rewrite the author information in each commit using
git filter-branch. (Note that usinggit filter-branchfor this rewrites the history extensively, so you shouldn’t do that if you’ve already shared the repository with anyone.)