From: Fletcher T. Penney Date: Tue, 16 Jun 2015 00:45:51 +0000 (-0400) Subject: add tools to help manage submodules X-Git-Tag: 0.1.0a~40 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=949dc5550371d3cfdfe0c2bfd6e53cdfbe3069c5;p=multimarkdown add tools to help manage submodules --- diff --git a/link_git_modules b/link_git_modules new file mode 100755 index 0000000..deb7cd1 --- /dev/null +++ b/link_git_modules @@ -0,0 +1,11 @@ +#!/bin/sh + +git submodule foreach git branch --set-upstream master origin/master + +git submodule foreach git checkout master + +# If one module needs to follow a different branch: +# cd some_module +# git branch --set-upstream our-branch origin/some-branch +# git checkout our-branch +# cd .. diff --git a/update_git_modules b/update_git_modules new file mode 100755 index 0000000..ff78f96 --- /dev/null +++ b/update_git_modules @@ -0,0 +1,3 @@ +#!/bin/sh + +git submodule foreach git pull origin