Skip to content

Instantly share code, notes, and snippets.

@wzr1337
Created April 7, 2014 20:35
Show Gist options
  • Save wzr1337/10047496 to your computer and use it in GitHub Desktop.
Save wzr1337/10047496 to your computer and use it in GitHub Desktop.
This script pulls all subdirectories
#! /bin/bash
find . -type d -depth 1 -exec git --git-dir={}/.git --work-tree=$PWD/{} pull origin master \;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment