#!/bin/bash # ***************************************************************************** # @author CsHeng # @2017.7.18 初始版本 # # 初始化git submodule # # ***************************************************************************** # get current shell absolute dir CWD=$(cd "$(dirname "$0")"; pwd) git submodule sync git submodule foreach git checkout master git submodule foreach git pull