BASE_PATH=$(cd "$(dirname "$0")"; pwd -P) # Ignore config file from worktree git update-index --skip-worktree wp-config.php # Update all submodules cd $BASE_PATH git submodule update --init --recursive