Update: I think this is related to an issue with the windows git client msysgit. Sorry to trouble you guys. http://code.google.com/p/msysgit/issues/detail?i
I'm assuming you have a good reason for using Git for this, rather than rsync.
This is how I'd do it (on the Clients):
git fetch origin
git reset --hard origin/master
git clean -dfx
Note that you need to reset to origin/master
rather than HEAD
because the local HEAD
doesn't include the origin's newest commits (yet).