简体   繁体   English

GIT 日志或提交监视器

[英]GIT Log or Commit Monitor

I'm trying to find a Git Commit Monitor for Windows.我正在尝试为 Windows 找到一个 Git 提交监视器。 Does anyone know whether one exists?有谁知道是否存在?

Ideally it would essentially monitor the log and notify when a new commit has occurred.理想情况下,它基本上会监视日志并在发生新提交时发出通知。

I have started an open source project to build a tool that does this.我已经启动了一个开源项目来构建一个执行此操作的工具。 SourceLog is a .NET v4.0 WPF application that monitors version control system change logs. SourceLog是一个 .NET v4.0 WPF 应用程序,用于监视版本控制系统更改日志。 The application uses a plugin model to support multiple version control systems.该应用程序使用插件模型来支持多个版本控制系统。 There are currently plugins for Git, GitHub (via the API), Subversion, Perforce, and TFS 2010.目前有适用于 Git、GitHub(通过 API)、Subversion、Perforce 和 TFS 2010 的插件。

SourceLog 主窗口

The application polls each "subscribed" repository for changes and displays a "toast" notification panel when new changes are detected.该应用程序轮询每个“订阅”存储库的更改,并在检测到新更改时显示“toast”通知面板。

The project is hosted on GitHub and the app can be installed via the ClickOnce installer hosted on AppHarbor .该项目托管在GitHub 上,可以通过托管在AppHarbor上的 ClickOnce 安装程序安装该应用程序。 There is more information available on my blog .我的博客上有更多信息。

The best would be to use the post-receive hook.最好的方法是使用 post-receive hook。

On your repository on the server, you have to put a shell script named 'post-receive' in the .git/hooks directory.在服务器上的存储库中,您必须在 .git/hooks 目录中放置一个名为“post-receive”的 shell 脚本。 This script will be invoked each time something is pushed and it's passed argument via stdin in the form每次推送某些内容时都会调用此脚本,并通过 stdin 的形式传递参数

There are examples scripts provided with recent version of git.最近版本的 git 提供了示例脚本。 Look in:在看:

/usr/share/doc/git-core/contrib/hooks/post-receive-email

On windows, look at the path of your install to find it ...在 Windows 上,查看安装路径以找到它...

https://gitmonitor.com https://gitmonitor.com

This site has a tool like what you're looking for... I came here trying to find info to see if it's good or not.这个网站有一个像你正在寻找的工具......我来这里是为了寻找信息,看看它是否好。

There is git monitor which displays popup notifications.有显示弹出通知的 git monitor。 It should work in Windows using Growl : https://github.com/spajus/gitmon它应该在 Windows 中使用Growl 工作https : //github.com/spajus/gitmon

See this blog for a approach using Growl, Cygwin, Ruby and Git-Notifier.有关使用 Growl、Cygwin、Ruby 和 Git-Notifier 的方法,请参阅此博客。

http://hsiliev.blogspot.com/2011/03/git-notifier-on-windows.html http://hsiliev.blogspot.com/2011/03/git-notifier-on-windows.html

Try RSS or Atom feeds and any common RSS reader (eg Mozilla Thunderbird).尝试 RSS 或 Atom 提要和任何常见的 RSS 阅读器(例如 Mozilla Thunderbird)。 Of course, you have some web server (like gitweb CGI script) which provides that.当然,您有一些提供该功能的 Web 服务器(如 gitweb CGI 脚本)。

Just use the GIT hook post-commit只需在post-commit使用 GIT 钩子

githooks(5) Manual Page githooks(5) 手册页

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM