Re:
From: Alex Riesen <hidden>
Date: 2016-06-15 22:46:43
2009/5/7 Bevan Watkiss [off-list ref]:
I am trying to create a working tree for people to read from and have it update from a bare repository regularly. Right now I am using git-pull to fetch the changes, but it’s running slow due to the size of my repo and the speed of the hardware as it seems to be checking the working tree for any changes. Is there a way to make the pull ignore the local working tree and only look at files that are changed in the change sets being pulled?
Assuming you didn't modify that directory you pull into, git pull will do almost exactly what you described. Almost, because the operation (the merge) will involve looking for local changes (committed and not). It should be faster to do something like this: git fetch && git reset --hard origin/master Again, assuming the directory supposed to be read-only. Otherwise, you have to merge (i.e. git pull).