Is there a tool to watch a remote Git repository on Ubuntu and do popup notifications when commits are made?

怎甘沉沦 提交于 2019-12-20 09:39:52

问题


I would like to have popup notifications when people make commits to repositories that I am watching. Not hosted on any particular site like github or anything, so the ability to just add the repository URL to a list of watched repositories would be needed. And as the title says, this is for Ubuntu, but cross platform is welcome!


回答1:


And thus, git-notify was born!

This little bash script will watch your origin/master for updates every 60 seconds and uses notify-send to alert you of new commits.




回答2:


If the repo isn't hosted locally (ie other people pushing to a repository hosted on your hard drive), you're probably going to need some form of polling, which is going to be slow and/or painful. Look at @Abizern's idea instead and create post-receive hooks in the repositories that send out emails whenever someone pushes to them. At my company we use the stock hook scripts included in the git suite, they're pretty fantastic and useful.




回答3:


Have you looked at writing post-commit hooks?



来源:https://stackoverflow.com/questions/5082001/is-there-a-tool-to-watch-a-remote-git-repository-on-ubuntu-and-do-popup-notifica

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!