added script to update current git working copy and submodules recursively

This commit is contained in:
Jocelyn Fiat
2011-10-27 14:58:14 +02:00
parent 161a5c720b
commit 95d44890d9
3 changed files with 21 additions and 1 deletions

View File

@@ -0,0 +1,9 @@
cd %~dp0..
echo Pull changes from origin master
call git pull origin master
echo Update all submodule recursively
call git submodule update --recursive
echo Checkout master branch for each submodule recursively
call git submodule foreach --recursive git checkout master

View File

@@ -0,0 +1,11 @@
#!/bin/sh
cd ..
echo Pull changes from origin master
call git pull origin master
echo Update all submodule recursively
call git submodule update --recursive
echo Checkout master branch for each submodule recursively
call git submodule foreach --recursive git checkout master