想写一个定时pull代码的脚本,有写过的吗?

不会,应该就几行代码,有分享下的吗?

最佳答案

下面这个脚本可以实现在本地推送到git上后,服务器上对应服务就自动pull

https://gist.github.com/noelb...