【问题标题】:Git: hook on git pull whether merge or notGit:挂钩 git pull 是否合并
【发布时间】:2013-10-15 18:12:36
【问题描述】:

我使用"post-merge" git hook,但是当没有要合并的东西时,钩子不会被执行。

我应该使用哪个钩子来执行拉取操作,无论是否有合并。

谢谢。

【问题讨论】:

    标签: git hook


    【解决方案1】:

    git pull 没有钩子。

    作为mentioned here,您需要设置某种任务来监控被提取到本地存储库中的新提交,以便触发您想要的。
    那或alias for the git pull command。

    【讨论】:

      猜你喜欢
      • 2016-10-10
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2013-01-15
      • 1970-01-01
      • 2017-10-18
      • 2017-03-26
      • 2016-04-06
      相关资源
      最近更新 更多