Ubuntu - GIT - Restore deleted file

To restore an accidentally deleted file

git checkout HEAD foo.bar