Check out example codes for "git pull one file". It will help you in understanding the concepts better.

Code Example 1

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).

Learn ReactJs, React Native from akashmittal.com