Skip to content

Instantly share code, notes, and snippets.

@childnode
Last active September 21, 2016 21:27
Show Gist options
  • Save childnode/6bc41d21e871ac436fe217c1aad995ad to your computer and use it in GitHub Desktop.
Save childnode/6bc41d21e871ac436fe217c1aad995ad to your computer and use it in GitHub Desktop.
recursive `git fetch all` #git #cmdline #script
## 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 )
}
@childnode
Copy link
Author

see also rgur.sh

@childnode
Copy link
Author

childnode commented Jul 13, 2016

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment