Created
February 11, 2013 22:00
-
-
Save rrajendran/4758000 to your computer and use it in GitHub Desktop.
Pulls all the project in a given directory
usage: ./gitpull.sh
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/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