Skip to content

Instantly share code, notes, and snippets.

@Samathy
Created December 24, 2016 17:22
Show Gist options
  • Save Samathy/715ed149c3aa0d5a194c8c14b3ac3c4a to your computer and use it in GitHub Desktop.
Save Samathy/715ed149c3aa0d5a194c8c14b3ac3c4a to your computer and use it in GitHub Desktop.
Small script to run 'git pull' in all subdirectories of the calling directory. (useful for updating plugins)
for dir in (ls)
cd $dir
if not ls .git
cd ../
continue
end
git pull
cd ../
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment