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