When the semester ends, you've got a week to grab your code before it goes public, like a free account.
I suspect this would catch on better if the repos were destroyed or stayed private. Professors reuse assignments year after year and wouldn't be too happy about public solutions to all their past assignments.