Skip to content

Instantly share code, notes, and snippets.

@oztune
oztune / pullall
Created May 31, 2012 18:24 — forked from johnstorm/pullall
Github Pull Everything Script - You must be in the folder that contains all of the projects to be updated, ex: cd C:/Projects/
#!/bin/bash
for file in *
do
if [ -d $file ]
then
cd $file
echo Pulling `pwd` `git branch 2>/dev/null | grep -e '^*' | sed -E 's/^\* (.+)$/(\1) /'`
git pull
cd ../