【问题标题】:Xcode won't run pre-push hook; does run other hooks; `xcrun git push` worksXcode 不会运行 pre-push hook;运行其他钩子; `xcrun git push` 有效
【发布时间】:2016-07-15 19:13:32
【问题描述】:

Xcode 似乎不会运行 pre-push 钩子。它愉快地运行了一个 pre-commit 钩子,令人惊讶的是,xcrun git push 运行了 pre-push 钩子没有问题。

我会考虑从相当于xcrun git push 的“源代码管理”菜单中选择“推送...”!发生了什么,我可以解决它吗?

【问题讨论】:

  • 您找到解决方案了吗?
  • 不幸的是,我的解决方案是“使用 SourceTree”...

标签: xcode git macos githooks


【解决方案1】:

开始在 XCode 上使用 pre-commit 钩子,似乎连这都不完全支持。

如果我在预提交文件中有任何“echo”语句以成功提交,则 XCode 会在以下弹出窗口中显示: Successful-commit

现在,如果我再次尝试提交更改,我发现这些更改已经提交。

因此,我们开始在这种情况下使用 SourceTree。

【讨论】:

    猜你喜欢
    • 2015-08-19
    • 1970-01-01
    • 2020-08-20
    • 2014-02-15
    • 2021-12-31
    • 2017-10-19
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多