call git pull :: call git submodule foreach git reset --hard call git submodule foreach git checkout master call git submodule foreach git pull call build.bat < ns.txt call git add -A call git commit -m "This commit was generated by pull_and_rebuild.bat and does exactly that"