git clone --recursive XXXXX.git path
cd to de path of the subdmoule and work normally
git submodule add XXXXX.git path/path
git submodule update --init --recursive
( related: http://git-scm.com/book/en/Git-Tools-Submodules#Issues-with-Submodules )
- mv folder giving problems
- checkout branch
- merge ( will delete folders, will bring .gitmodules, .. )
- g submodule update ( ready to go! )