git pull changes from remote branch to local for specifc file code example Example: git origin master some file git checkout origin/master -- path/to/file