Skip to content

Instantly share code, notes, and snippets.

@rrajendran
Created February 11, 2013 22:00
Show Gist options
  • Select an option

  • Save rrajendran/4758000 to your computer and use it in GitHub Desktop.

Select an option

Save rrajendran/4758000 to your computer and use it in GitHub Desktop.
Pulls all the project in a given directory usage: ./gitpull.sh
#!/bin/bash
gitpull() {
while read data; do
cd $data
git pull | cat
echo -e
cd ..
done
}
#list all directories, pipe to gitpull.
ls -d */ | gitpull
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment