Skip to content

Instantly share code, notes, and snippets.

@mjvdende
Created May 28, 2014 12:20
Show Gist options
  • Save mjvdende/b181486c961d7096a6c1 to your computer and use it in GitHub Desktop.
Save mjvdende/b181486c961d7096a6c1 to your computer and use it in GitHub Desktop.
update all git repo in directory
find /Users/maarten/projects -type d -name .git | xargs -n 1 dirname | sort | while read line; do echo $line && cd $line && git pull; done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment