Working across several git repositories can be cumbersome. I have on multiple occasions been tempted to script a set of git commands to run on multiple repositories. I finally decided to make a simple tool that I could run from any directory that would recursively run the git command I fed it on all git repositories located beneath that directory.
gitr is available from npm by issuing the following command:
npm install -g gitr
After this you can run git commands as you normally would by issuing the ‘gitr’ command, and gitr will figure out what directories it needs to run them on.
gitr status
gitr pull
gitr "log --since '1 day ago' --oneline --pretty=format:'%s'"