最佳答案
http://norbauer.com/notebooks/code/notes/git-revert-reset-a-single-file
I have found a post.
But still don't know what is the difference between
git checkout <filename>
git checkout -- <filename>
In what situation I should use first one and second one respectively?