Skip to content

Instantly share code, notes, and snippets.

@sepgh
Created March 28, 2020 08:13

Revisions

  1. sepgh created this gist Mar 28, 2020.
    3 changes: 3 additions & 0 deletions needs.sh
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,3 @@
    #!/bin/sh
    ### Needed packages
    sudo apt install git sshpass
    2 changes: 2 additions & 0 deletions pullAll.sh
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,2 @@
    #!/bin/sh
    for i in */.git; do ( echo $i; cd $i/..; sshpass -p "yourgitpassword" git pull; ); done
    2 changes: 2 additions & 0 deletions pushAll.sh
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,2 @@
    #!/bin/sh
    for i in */.git; do ( echo $i; cd $i/..; sshpass -p "yourgitpassword" git push; ); done