git submodule update Permission Denied

git submodule update

fatal: Needed a single revision
Unable to find current revision in submodule path 'cookbooks/R'
  • rm -rf cookbooks/R

Permission denied (publickey)
fatal: The remote end hung up unexpectedly


REFERENCES