Skip to content

Instantly share code, notes, and snippets.

@jhn--
Created December 2, 2015 03:52
Show Gist options
  • Save jhn--/51278352d4805c4366ea to your computer and use it in GitHub Desktop.
Save jhn--/51278352d4805c4366ea to your computer and use it in GitHub Desktop.
bash script to blindly traverse every subfolder and execute a git pull
#!/bin/bash
for i in `find . -maxdepth 1 -mindepth 1 -type d`; do cd $i; git pull; cd ..; done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment