【问题标题】:Git subtree errorGit子树错误
【发布时间】:2012-05-03 22:09:23
【问题描述】:

我尝试在 Mac 上安装 git-subtree 并在第一步之后:

cp git-subtree.sh "$(git --exec-path)"/git-subtree

当我尝试使用 git-subtree 时,我总是得到一个错误:

sudo git subtree split -P ObjectiveBlip export 
fatal: cannot exec 'git-subtree': Operation not permitted 

我的 git 版本是 1.7.7.4。

【问题讨论】:

  • 您是否使git-subtree.sh 脚本可执行?即在执行chmod a+rx "$(git --exec-path)"/git-subtree 之后它是否有效?
  • 感谢您的回答,我做到了,但问题是其他的。我修复了它 xattr -d com.apple.quarantine git-subtree。
  • 很高兴听到您解决了问题。您应该将其添加为您自己问题的答案,因为它可能对其他人有用。

标签: git macos osx-lion git-subtree


【解决方案1】:

我用xattr -d com.apple.quarantine git-subtree 解决了这个问题。

【讨论】:

    猜你喜欢
    • 2012-12-22
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2014-04-15
    • 1970-01-01
    • 2015-06-14
    • 2012-11-07
    • 2014-04-06
    相关资源
    最近更新 更多