windows GIT 日志或提交监视器

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/1654257/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-09-15 13:22:11  来源:igfitidea点击:

GIT Log or Commit Monitor

windowsgitcommit

提问by Tom

I'm trying to find a Git Commit Monitor for Windows. Does anyone know whether one exists?

我正在尝试为 Windows 找到一个 Git 提交监视器。有谁知道是否存在?

Ideally it would essentially monitor the log and notify when a new commit has occurred.

理想情况下,它基本上会监视日志并在发生新提交时发出通知。

采纳答案by jitter

Just use the GIT hook post-commit

只需使用 GIT 钩子 post-commit

githooks(5) Manual Page

githooks(5) 手册页

回答by Tom Hunter

I have started an open source project to build a tool that does this. SourceLogis a .NET v4.0 WPF application that monitors version control system change logs. 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.

我已经启动了一个开源项目来构建一个可以执行此操作的工具。SourceLog是一个 .NET v4.0 WPF 应用程序,用于监视版本控制系统更改日志。该应用程序使用插件模型来支持多个版本控制系统。目前有适用于 Git、GitHub(通过 API)、Subversion、Perforce 和 TFS 2010 的插件。

SourceLog main window

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 GitHuband the app can be installed via the ClickOnce installer hosted on AppHarbor. There is more information available on my blog.

该项目托管在GitHub 上,可以通过托管在AppHarbor上的 ClickOnce 安装程序安装该应用程序。我的博客上有更多信息。

回答by 246tNt

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. This script will be invoked each time something is pushed and it's passed argument via stdin in the form

在服务器上的存储库中,您必须在 .git/hooks 目录中放置一个名为“post-receive”的 shell 脚本。每次推送某些内容时都会调用此脚本,并通过 stdin 的形式传递参数

There are examples scripts provided with recent version of git. Look in:

最近版本的 git 提供了示例脚本。在看:

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

On windows, look at the path of your install to find it ...

在 Windows 上,查看安装路径以找到它...

回答by ddtraveller

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.

这个网站有一个像你正在寻找的工具......我来这里是为了寻找信息,看看它是否好。

回答by Spajus

There is git monitor which displays popup notifications. It should work in Windows using Growl: https://github.com/spajus/gitmon

有显示弹出通知的 git monitor。它应该在 Windows 中使用Growl 工作https: //github.com/spajus/gitmon

回答by Jafin

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

回答by xmedeko

Try RSS or Atom feeds and any common RSS reader (e.g. Mozilla Thunderbird). Of course, you have some web server (like gitweb CGI script) which provides that.

尝试 RSS 或 Atom 提要和任何常见的 RSS 阅读器(例如 Mozilla Thunderbird)。当然,您有一些提供该功能的 Web 服务器(如 gitweb CGI 脚本)。