Overview git clone with submodules git clone --recurse-submodules [email protected]:yanboyang713/DotFiles.git Git Push include submodulediles $ cd your_submodule $ git checkout master <hack,edit> $ git commit -a -m "commit in submodule" $ git push $ cd .. $ git add your_submodule $ git commit -m "Updated submodule"