Last active
September 21, 2016 21:27
-
-
Save childnode/6bc41d21e871ac436fe217c1aad995ad to your computer and use it in GitHub Desktop.
recursive `git fetch all` #git #cmdline #script
This file contains hidden or 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
## usage: `rgfa` | |
rgfa () | |
{ | |
test -d .git && ( echo "found git repo in $i" && ( git fetch -a > /dev/null ); | |
echo "done $PWD" ) || ( for i in *; | |
do | |
test -d "$i" && ( builtin cd "$i" && rgfa ); | |
done ) | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
see also at the great
gitup
https://github.com/earwig/git-repo-updater(don't confuse with another great tool: http://gitup.co)
find . -iname .git -type d -exec dirname {} \; | xargs gitup