summaryrefslogtreecommitdiff
path: root/fetch-all
diff options
context:
space:
mode:
authorGravatar steering72532026-05-18 01:25:46 -0600
committerGravatar steering72532026-05-18 01:25:46 -0600
commitdc54a69b7552d8d44adf25b8009992c4a2b395be (patch)
tree0c1864e9239bf02fc83408be378d983070250ead /fetch-all
init
Diffstat (limited to 'fetch-all')
-rwxr-xr-xfetch-all12
1 files changed, 12 insertions, 0 deletions
diff --git a/fetch-all b/fetch-all
new file mode 100755
index 0000000..d556535
--- /dev/null
+++ b/fetch-all
@@ -0,0 +1,12 @@
+#!/bin/bash
+# Fetch all your repos that have a remote
+
+cd $HOME
+
+find . -type d -name '*.git' | while read -r repo; do
+ echo "$repo"
+ pushd "$repo" >/dev/null
+ git -c credential.interactive=false fetch --all
+ git update-server-info
+ popd >/dev/null
+done