Jason
56
Q:

git add submodule

git submodule update --init --recursive
4
git submodule update --recursive --remote
1
git clone --recurse-submodules
5
git submodule update --init --recursive
0
git submodule update --remote <path to the submodule>
0
git submodule add path/to/submodule
1
git checkout --recurse-submodule
0
# 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 --recursive
0

New to Communities?

Join the community