how to fetch file form master to local branch code example Example: git origin master some file git checkout origin/master -- path/to/file