For commits associated with an account, GitHub shows the username in all cases; this is not configurable. The way a commit is associated with an account is by the email address on the commit matching one on the GitHub account.
Note that your commits will still show your real name if you run git log
or another tool at the command line. The name shown will reflect the value of user.name
set by the author or committer at the time the commit was created; changes to that value later do not change older commits.
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…