Как удалить нажатый файл из git

git checkout HEAD^ -- /path/to/file
Old-fashioned Owl