Skip to content

Commit

Permalink
Pull all in parallel.
Browse files Browse the repository at this point in the history
  • Loading branch information
xet7 committed Dec 16, 2023
1 parent 1c81db9 commit 07a92ba
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions git-pull-all-subsub.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@

# At directory repos/orgs , pull all repos at repos/orgs/ORGNAME/REPONAME
# orgs could be users, git clone or git ssh.
# & does all in parallel.


for i in */*/.git; do ( echo $i; cd $i/..; git pull; ); done
for i in */*/.git; do
( echo $i; cd $i/..; git pull; ) &
done

0 comments on commit 07a92ba

Please sign in to comment.