1

So I seem to have been a bit carless with sudo when trying to setup my git account was following a tutorial and this is what I entered

458  git credential-osxkeychain
459  curl -s -O http://github-media-downloads.s3.amazonaws.com/osx/git-credential-osxkeychain
460  git credential-osxkeychain
461  which git
462  sudo mv git-credential-osxkeychain /usr/bin/git
463  git config --global credential.helper osxkeychain
464  sudo git config --global credential.helper osxkeychain

now wheneverI try any type of git command I receive the message

-bash: /usr/bin/git: Permission denied

Any help would be very very much appreciated.

1 Answer 1

5

Try:

chmod a+x /usr/bin/git

or:

chmod 755 /usr/bin/git
0

Not the answer you're looking for? Browse other questions tagged or ask your own question.