Checkout out a file from a branch
checkout a file into your staging area
git checkout [branch] -- [file]reset to working area
git reset HEAD [file]reset the file from working area to current commit
git checkout -- [file]
checkout a file into your staging area
git checkout [branch] -- [file]reset to working area
git reset HEAD [file]reset the file from working area to current commit
git checkout -- [file]