aboutsummaryrefslogtreecommitdiff
path: root/git-submodules-checkout-branch
diff options
context:
space:
mode:
Diffstat (limited to 'git-submodules-checkout-branch')
-rwxr-xr-xgit-submodules-checkout-branch7
1 files changed, 7 insertions, 0 deletions
diff --git a/git-submodules-checkout-branch b/git-submodules-checkout-branch
new file mode 100755
index 0000000..773ab21
--- /dev/null
+++ b/git-submodules-checkout-branch
@@ -0,0 +1,7 @@
+#!/bin/bash
+#
+# Checkout branches in all submodules, recursivelly.
+#
+
+# Run recursivelly for each submodule
+git submodule foreach --recursive git-checkout-branch