Good point.
But if the code has copyrighted issues, then how can I show publicly? I usually have a copy of repository for my past projects and I don't mind to show it to people who interview me.
Also I think if I need to put code on GitHub, it has to be some software for more generic tasks.