pushd %0\.. svn up IF NOT EXIST fost-web\. ( call git clone git@github.com:Felspar/fost-web.git ) ELSE ( cd fost-web call git pull origin master ) cd .. IF ERRORLEVEL 1 ( popd copy ) ELSE ( popd )