Should I use a personal github account or a new one to publish academic code? When I want to publish academic code, should I use my personal account with a pseudonymous username or create a new one with a username based on my real name?

My current account uses a pseudonym as username and I write code where I use my real name in the commits and an e-mail address related to the pseudonym (e.g. to keep my personal mail address free from spam).
For university code, I use my real name and university e-mail address in the repositories, but the URLs of the projects still contain the username, so the pseudonym is quite visible.

My personal account contains a few non-university projects and forks of other projects (some for modifications used by my university codes, some unrelated to my university work) as well. There is nothing I would not want to be seen by others and some of the voluntary work may reflect positively on me.


Should I worry about the username being a pseudonym (nothing silly like "buffy_the vampire_slayer", but still unrelated to my name)?


When publishing code linked on the university website.
When publishing code with the URL linked in a paper.

Is it preferred to have an account for university codes only?


I do not think my university or department has any rules for this, so I need to decide it myself.
You should use your real name.

My lab has a private GitHub group for internal stuff, as well as a few open public-facing projects. 

Everyone in our group uses their real names or some transparent abbreviation (like jsmith) or one that matches their university email/login ID.

I feel it should be immediately obvious who each person is. It would be mildly annoying if I had to remember who allo was every time, when everyone else has easy-to-read IDs. 

If I was your mentor, I would probably ask you to change it. 

It's fine if you do non-job-related development on that same GitHub account, for the reasons you mentioned.