Saturday, June 14, 2008

Update all my git projects automatically

Here's a quick one-liner I use, to update all my git projects I follow:


#!/bin/sh
for d in `ls -1p | grep \/$`; do echo "entering $d" ; cd $d ; git pull ; cd .. ; done


This helps my to easily stay current on several projects and only requires my to start a single shell script :)

No comments: