git clone ssh://gshao@192.168.211.200:/home/gshao/project/bin git clone ssh://gshao@192.168.211.200:/home/gshao/project/www cd C:\temp\git_repo_sync\ dir > log.txt REM sync bin echo "sync repo bin " >> log.txt cd bin echo The current folder is: %cd% >> ../log.txt git fetch >> ../log.txt git reset --hard origin/master >> ../log.txt cd .. REM sync www echo "sync repo www " >> log.txt cd www echo The current folder is: %cd% >> ../log.txt git fetch >> ../log.txt git reset --hard origin/master >> ../log.txt cd ..