sync-all-repos 321 Bytes
Newer Older
1 2 3 4 5 6 7
#!/bin/sh

set -e

for repo in ~/.ctt \
                ~/vcs/notes/ \
                ~/vcs/mindmap/ \
Nico Schottelius's avatar
Nico Schottelius committed
8
                ~/vcs/ungleich-administrativ/ \
9 10
                ~/.password-store \
            ; do
Nico Schottelius's avatar
Nico Schottelius committed
11
    echo $repo
12 13
    cd $repo
    git add .
Nico Schottelius's avatar
Nico Schottelius committed
14
    git commit -m "updated by $0"  || true
15 16 17
    git pull
    git push
done