Git的状态跨越多个版本库在Mac上 [英] Git Status Across Multiple Repositories on a Mac

查看:130
本文介绍了Git的状态跨越多个版本库在Mac上的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我一直在寻找一个解决方案,这一段时间,并没有发现完全是我所需要的。

I have been searching for a solution to this for a while and have not found quite what I need.

我有几个git仓库的文件夹在我的Mac(OSX 10.6),并想一个脚本或工具,将通过所有的仓库循环,让我知道,如果其中任何一个需要提交 ING。

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 commiting.

这是我的结构

This is my structure

Sites
  /project1
  /project2
  /project3

我想要的工具做一个 git的状态在网站/ PROJECT1,网站/项目2,网站/项目3,让我知道其中是否有变化或新的文件那需要上演或承诺。

I want the tool to do a git status in Sites/project1, Sites/project2, Sites/project3 and let me know if any of them have changes or new files that need to be staged or committed.

我发现的最接近剧本,可能是容易被破解在这里,但即使脚本将无法运行,我得到一个错误:

The closest script I found that might be hackable is here, but even that script wouldn't run, and I get an error:

附近意外的标记语法错误`做

"syntax error near unexpected token `do"

这可能为* nix中已被写入。

which might have been written for *nix.

推荐答案

有一个基于Python程序,未提交该听起来像它会做正是你想要的。有没有它的Git支持,但(只是汞和Subversion),但你可能能够帮助作者实现的Git支持他的应用,还是拿他的想法是如何实现你的东西(他记录了他的项目页面上发现的方法我挂)。

There's a Python based program, uncommitted that sounds like it would do exactly what you want. There's no git support for it yet (just hg and Subversion), but you may be able to help the author implement git support in his app, or take his ideas as how to implement your stuff (he documents his finding method on the project page I linked to).

这篇关于Git的状态跨越多个版本库在Mac上的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆