doujiu3768 2016-12-12 06:55
浏览 199

如何在服务器上设置git以进行自动提交/推送?

I have a sever and there I have Joomla installed and I wanted to setup git for this server. when a file is changed on this joomla setup it should automatically commit/push changes to the github repo.

is it possible with the help of php? if yes please let me know how?

  • 写回答

1条回答 默认 最新

  • douqian8238 2016-12-12 08:36
    关注

    For auto-commit, you want your system to watch file updates. See Making git auto-commit for more info.

    If you want auto-push after the commit, you might want to look for post-commit git hooks : https://git-scm.com/book/it/v2/Customizing-Git-Git-Hooks

    评论

报告相同问题?

悬赏问题

  • ¥15 想问一下树莓派接上显示屏后出现如图所示画面,是什么问题导致的
  • ¥100 嵌入式系统基于PIC16F882和热敏电阻的数字温度计
  • ¥15 cmd cl 0x000007b
  • ¥20 BAPI_PR_CHANGE how to add account assignment information for service line
  • ¥500 火焰左右视图、视差(基于双目相机)
  • ¥100 set_link_state
  • ¥15 虚幻5 UE美术毛发渲染
  • ¥15 CVRP 图论 物流运输优化
  • ¥15 Tableau online 嵌入ppt失败
  • ¥100 支付宝网页转账系统不识别账号