For what reason when I do the first Fetch, this one did not download all files? That is, in the main computer there are 17000 files, but when I do the Fetch, just download 12000. What we are not download pictures and some important files (php files). Do you know what can be the reason? What must I do to be downloaded and sync all files?
Best How To :
I'm one of the SourceTree devs. Whilst SourceTree might seem to be doing magical things, when it comes to any Git operations such as cloning, fetching, pulling etc. all that's happening is we call Git on your behalf. In the case where there's less files than expected after doing a clone, for example, this is usually because there's something specific to the repository rather than SourceTree.
There's a couple of factors that come into play here:
- Branches: As others have pointed out in the comments already, make sure you're on the correct branch.
- Ignored files: There's actually three ignore files; local, global, and system. Whichever system that has 17,000 files would be the culprit as it wouldn't be checking in those files. Your pattern matching might be too general meaning it's applying to those 5,000 missing files.
- local: In the main repository directory named
$HOME/.gitignore_global (git 2.0 this has changed to
You can check which files have been ignored by either changing the file filter in SourceTree itself or using
git status --ignored at the terminal to determine which files are being ignored. If you see any folder patterns this might be a big clue.
Hope that helps