Created
March 9, 2012 13:41
-
-
Save i-e-b/2006538 to your computer and use it in GitHub Desktop.
Perform a git pull on all subdirectories of a given folder
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 | |
pushd ~/.gvfs/work\ on\ iain-2003svrvm | |
folders=( */ ) | |
for location in "${folders[@]%*/}"; do | |
pushd $location | |
git pull origin master | |
popd | |
done | |
popd |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment