如果我的回购在Windows机器上,我可以使用邮件接收邮件脚本发送邮件吗? [英] Can I have git send out an email with the post-receive-email scripts if my repo is on a Windows machine?

查看:128
本文介绍了如果我的回购在Windows机器上,我可以使用邮件接收邮件脚本发送邮件吗?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我看到一些例子,当一个repo收到一个新的推送发送电子邮件,但他们似乎都是在一台linux机器上的一个回购,这可能是在Windows机器上的我的回购? / p>

I have seen a bunch of examples for sending emails out when a repo receives a new push, but they seem to all be for a repo on a linux machine, is this possible to do with my repo on a windows machine?

推荐答案

当然,即使您正在运行Windows,也可以使用任何类型的脚本语言,例如Python或Ruby,它们易于在Windows上安装。只需在脚本的顶部创建一个hashbang:

Sure, even if you are running windows you can use any type of scripting language, e.g. Python or Ruby which are easy to install on windows. Just create a hashbang at the top of your script:

#!C:\Python26\python

使用python它是一个蛋糕发送邮件,与数据库或任何数据库交谈。

With python it's a piece of cake to send mails, talk to a database or whatever.

这篇关于如果我的回购在Windows机器上,我可以使用邮件接收邮件脚本发送邮件吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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