0

I tried to install git-subtree on Mac and after the first step:

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

when I try to use git-subtree I get always an error:

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

My git version is 1.7.7.4.

approxiblue
  • 6,982
  • 16
  • 51
  • 59
Mihai Panţiru
  • 513
  • 3
  • 16
  • Did you make the `git-subtree.sh` script executable? i.e. does it work after doing `chmod a+rx "$(git --exec-path)"/git-subtree` ? – Mark Longair Apr 23 '12 at 11:16
  • Thanks for the answer, I did that but the problem was other. I fixed it xattr -d com.apple.quarantine git-subtree. – Mihai Panţiru Apr 23 '12 at 12:11
  • I'm glad to hear that you solved the problem. You should add that as an answer to your own question, since it may well be useful to other people. – Mark Longair Apr 23 '12 at 12:27

1 Answers1

2

I fixed this problem with xattr -d com.apple.quarantine git-subtree.

CharlesB
  • 86,532
  • 28
  • 194
  • 218
Mihai Panţiru
  • 513
  • 3
  • 16