mywiki:windows:git_clone_in_windows
Git clone in windows
Example to clone from a remote server's git working copy (not repo)
- s_git_clone.bat
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 ..
mywiki/windows/git_clone_in_windows.txt · Last modified: by gshao
