diff options
Diffstat (limited to 'fetch-all')
| -rwxr-xr-x | fetch-all | 12 |
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 |
