git pull one file from master code example
Example 1: git origin master some file
git checkout origin/master -- path/to/file
Example 2: git pull one file
git checkout origin/master -- path/to/file
// git checkout <local repo name (default is origin)>/<branch name> -- path/to/file will checkout the particular file from the downloaded changes (origin/master).