Git Status Across Multiple Repositories on a Mac
Posted
by eapen
on Stack Overflow
See other posts from Stack Overflow
or by eapen
Published on 2010-05-04T12:34:58Z
Indexed on
2010/05/04
12:38 UTC
Read the original article
Hit count: 274
I have been searching for a solution to this for a while and have not found quite what I need.
I have several Git Repositories in a folder on my Mac (OSX 10.6) and would like a script or tool that will loop through all the repositories and let me know if any of them needs "commit"-ing.
This is my structure
Sites
/project1
/project2
/project3
I want the tool to do a "git status" in Sites/project1, Sites/project2, Sites/project3 and let me know if Sites/project2 and Sites/project3 have changes or new files and needs to be Staged/committed
The closest script I found that might be hackable is here:
http://gist.github.com/371828
but even that script wouldn't run and I get an error:
"syntax error near unexpected token `do"
which might have been written for *nix.
© Stack Overflow or respective owner