May 27, 2013 0

push all submodules in a git repo

By in GIT

If you have a git repository that consist of several submodules you can push all submodules by doing the following:

place yourself in the main git repo.

write:
git submodule foreach git push

To make sure that you get through all the submodules even if errors occurs do:
git submodule foreach "git push || true"

Tags: , ,


Warning: count(): Parameter must be an array or an object that implements Countable in /var/www/mgis.dk/about/wp-includes/class-wp-comment-query.php on line 399

Leave a Reply