And another script for you kiddies out there!
At work I'm working with quite a few repositories simultaneously, which makes it horribly annoying to check the git status of each project. Of course, I could use something like EGit to see the status directly in Eclipse, but come on...
Here's the script: https://gist.github.com/TomTasche/5414857
It's really simple. In fact, it doesn't even check if it's a directory it tries to cd to. But it does the job pretty good for me. I hope it can help you too!