git add submodule

Shell
git submodule add path/to/submodulegit submodule update --recursive --remote
git clone --recurse-submodules# Be careful it will delete all untracked files, reset all stagated files
# and will remove all submodule folders
git reset --hard
git checkout gh-pages
git clean -xffd
# Optional restoration of submodules content
git submodule update --init --recursivegit submodule update --remote <path to the submodule>
git submodule update --init --recursive
Source

Also in Shell: