After you've made some Git commits on Code Ocean, you'll see a blue committed link in your Timeline:
Click that to see a list of all files that have changed, as well as a dropdown menu with a View changes prompt:
Select this to see a log of which lines have changed.