[ Content | View menu ]

Git Info

Mark Mzyk | February 29, 2012

Git info is a bash script I wrote that searches for git repositories with modified files and returns a list of the modified files and current branch name. It searches one level deep in subdirectories of the directory it is invoked in.

It’s useful if you collect a bunch of git repos in one master folder (say ~/src, for instance) and want to be able to scan the current state of each repo easily.

You can also pass the script the -b or –branch option and it will report the current branch of repos that don’t have any modified files, in addition to those that branches that do have modified files.

Filed in: Tools.