If using sourcetree with git I think you can only pull whole commits and not individual files. Even if your colleague had made a separate commit for each of the 5 files, to be up to date with his repository you'd have to get all 5 of those commits which would still mean having to download 5 files.
If 2 of the 5 files are really not important maybe they should be ignored with .gitignore file.
If the changes were in separate commits, you could "cherry pick" the commits that you wanted.
SourceTree does not provide a way to pull in part of a commit, and even Git doesn't do that in a way that tracks the history of the change accurately.
See this question regarding acheiving what you're trying to do via command line (SourceTree > Terminal): http://stackoverflow.com/a/4316039/1476926
I believe the correct procedure is to branch at your colleague's commit, select the files you want from your colleague and pull them, then merge your branch once you've completed your edits within the branch. In fact, Git will merge your branch with the master when you commit and push.
Badges are a great way to show off community activity, whether you’re a newbie or a Champion.Learn more
Supported Platforms macOS Windows To make using Sourcetree as simple yet powerful as possible we embed (bundle) dependencies such as Git, Git LFS, and Mercurial. We strive to keep these...
Connect with like-minded Atlassian users at free events near you!Find a group
Connect with like-minded Atlassian users at free events near you!
Unfortunately there are no AUG chapters near you at the moment.Start an AUG
You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs