git checkout one file from master code example Example: git origin master some file git checkout origin/master -- path/to/file