Created
September 18, 2010 22:55
-
-
Save danro/586139 to your computer and use it in GitHub Desktop.
Bash git recursive pull
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# find all .git directories and exec "git pull" on the parent. | |
find . -type d -name .git -exec sh -c "cd \"{}\"/../ && pwd && git pull" \; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment