42¢ glxn.net

gitr: recursive git command runner

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

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'"

to comment this post go to the post page

Moar stuffs

22 May 2013 » gitr: recursive git command runner
21 May 2013 » Keeping gh-pages branch in sync with master
19 May 2013 » Migrated to jekyll and github pages
14 Aug 2012 » Using Sublime Text 2 as git commit message editor
10 Mar 2012 » QRGen, a small wrapper on top of ZXING for generating QRCodes in java
04 Jan 2012 » My Bash PS1 with git branch info
19 Aug 2010 » Pomodoro Technique and my idea for a decent android app
17 Aug 2010 » Making a swing project using IntelliJ IDEA GUI builder with maven, Including executable jar
01 May 2010 » Using Arquillian to test against a remote jboss container from within IDEA
06 Apr 2010 » WELD/CDI lightningtalk from Know IT 2010 annual conference
03 Apr 2010 » Solving Sudoku using java swing and junit
01 Mar 2010 » Simple CDI/WELD login example
01 Mar 2010 » Implementing @RequestParam in CDI/WELD using Qualifier and InjectionPoint as @HttpParam
01 Nov 2009 » Seam Maven Refimpl