Update all git repositories in one command

If you have placed all git repositories in single parent folder like me. This is for you. Update all your repositories in single command.

find . -type d -name .git -exec sh -c "cd "{}"/../ && pwd && git pull" ;

and then wait for a long time…