2
A
回答
1
您可以看看SCuMD GIT服务器。我描述这里的基本配置:
Best Mac OSX and Windows Git Clients, servers and diff tools?
它支持电子邮件通知(和很多像DB用户授权,独立的SSH服务器,等...等凉的东西)。
这里是例如配置与电子邮件通知:
<beans:beans xmlns="http://asolutions.com/schema/spring/scumd" xmlns:beans="http://www.springframework.org/schema/beans" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans.xsd http://asolutions.com/schema/spring/scumd http://asolutions.com/schema/spring/scumd/scumd-0.1.0.xsd">
<git-ssh-server port="1122" repositories-base="${gitRepos}">
<default-server-key-pair />
<listeners>
<!--
Email listener will send emails to provided email/users/groups(all users in each group) when event is triggered.
Each configuration element can be defined either as attribute or inner tag.
event attribute can have following values:
* authenticationSuccess
* authenticationFail
* authorizationSucces
* authorizationFail
* repoCreate
* pull
* push
* commit
Note: If you want to use email listeners, you should also define <email-sender /> tag.
-->
<email event="push" emails="[email protected], [email protected]" subject="My Notification!">
<users>u1, u2</users>
<groups>g1, g2</groups>
</email>
</listeners>
</git-ssh-server>
<!--
If you are using email listeners, you should also define email-sender
in order to define SMTP/SMTPS configuration
-->
<email-sender host="my.host" port="465" protocol="smtps"
auth="true" user="mailsUser" password="secret"
from="[email protected]" replay-to="[email protected]"
force-email="[email protected]" />
<acl>
<repository path="**/*.git">
<groups allow="ReadWrite, Create" list="g1, g2" />
</repository>
</acl>
<simple-user-dao>
<group name="g1">
<user name="u1" email="[email protected]">
<public-key file="/path/to/the/id_rsa.pub" />
<public-key file="/path/to/the/other/id_rsa.pub" />
</user>
<user name="u2" email="[email protected]">
<public-key file="/path/to/another/key" />
</user>
</group>
<group name="g2" />
</simple-user-dao>
</beans:beans>
服务器仍处于测试阶段,但它的功能全面,并且我们用它在工作中(没有问题,)。
4
取每隔一分钟。如果有变化,对它们做出反应(例如发送电子邮件)。
相关问题
- 1. 远程Git分支
- 2. Git远程分支机构
- 3. Git远程分支提交
- 4. 比较远程Git分支
- 5. 重置远程git分支
- 6. 检出远程git分支?
- 7. git推远程分支
- 8. 具体分支远程Git
- 9. Git远程分支工作流程
- 10. Git删除不在远程/远程的远程分支
- 11. git分支和远程主存储库
- 12. Git:将远程分支拉到本地
- 13. 推送到git远程分支
- 14. Git fetch没有下载远程分支
- 15. Git的 - 地方分支机构,远程
- 16. git默认远程分支与gitolite
- 17. 清洗远程的Git分支
- 18. Git:本地合并远程分支
- 19. 清理旧的远程git分支
- 20. Git分支管理:本地与远程
- 21. git推送到远程分支
- 22. 删除git远程分支提交
- 23. 在远程分支上运行`git log`
- 24. Git远程起源有两个分支
- 25. 无法删除远程git分支
- 26. 使用JGit删除远程Git分支
- 27. 的Git分支内容从远程
- 28. 的Git检出远程分支
- 29. git:跟踪多个远程分支
- 30. 如何删除git远程分支