Skip to content

Instantly share code, notes, and snippets.

@Logiks
Last active July 9, 2016 20:43
Show Gist options
  • Save Logiks/4b075c96ee0e41b71fa6012c84a670a2 to your computer and use it in GitHub Desktop.
Save Logiks/4b075c96ee0e41b71fa6012c84a670a2 to your computer and use it in GitHub Desktop.
Search for all git sub projects, and updates them all.
#!/bin/sh
find . -type d -name .git -exec sh -c "cd \"{}\"/../ && pwd && git pull origin master" >tmp/update.log \;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment