How to credit contributions to another account for github?
This question already has an answer here:
You will need to edit past commits (this is called rebasing) on your local (stored on your computer) git repository, then force-push it to GitHub with a git push --force
to overwrite the commits on your remote repository.
As for the editing part, you may be interested in filter-branch
. This SO answer gives a nice example that is related to what you aim to do.
上一篇: Git改变了不推压提交的作者