Check out a file as it was on a specific commit | The Git Checkout Command

Sometimes you want to check out a file as it was on a specific commit. You can do this easily by using the Git checkout command:
To check out the file Controller.java, you could do the following:
Reference
For full reference see Git checkout documentation.