I'm having trouble rolling back to a previous commit to Github using Android Studio.

When using the 'checkout' option some of my project changes back to how it was, however all new classes remain and some but not all new changes also remain.

I want to roll back so my project is exactly as it was when I committed it, with no new classes or changes to the code remaining.