I mainly worry about plagirism-related problems. Specifically, can I prove my project is not copied from others, or if someone does copy mine can I prove mine to be the original?
My university at least, recommends we don’t publish coursework implementation solutions to GitHub. Their argument is if the coursework topic doesn’t change it may help future students.
However, for individual projects that are your idea and unique to you there’s no problem. Nevertheless plagiarism checkers may still flag it up, so best to only publish after say, a year.
I’d advise to check with your school tho.