I thought about such a solution for teaching recently, so I'll try it for the next class :D

I don't mind live coding for students, but it often diverges a bit, I'd rather stick to what's on the repo I prepared with atomic commits.