@DelusionalAI Just for the reference for anyone who reads it and is interested:
1. git rebase -i COMMIT_ID^
2. choose "edit" in the commit you're interested in
3. git commit --amend --no-edit --author="Name Surname <email>"
4. git rebase --continue
5. git push --force-with-lease
6. ...
7. PROFIT
PS. It's "git", GitHub is irrelevant there ;)