How to git submodule push the code

A git project is associated with a submodule how to update the project under the submodule

https://stackoverflow.com/questions/5814319/git-submodule-push

$ cd your_submodule
$ git checkout master
$ git commit -a -m "commit in submodule"
$ git push
$ cd ..
$ git add your_submodule
$ git commit -m "Updated submodule"

 

Guess you like

Origin www.cnblogs.com/gnivor/p/11808256.html