【发布时间】: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