How can I update the usernames/emails in Git commits? -
i wish update usernames user in git history, possible?
it blunder of mine, migrated cvs while ago , didn't realise until started using git repo missed few usernames.
you want git-filter-branch. example, change email address of every commit in entire history, can do:
$ git filter-branch --env-filter git_author_email=new_address
you can set filter modify commits based on whatever criteria need. example, if want set email address commits authored "barry", do
$ git filter-branch --env-filter ' if test "$git_author_name" = barry; git_author_email=barrys-correct-address fi'
this modify sha1s of every commit.
Comments
Post a Comment