Hacker News new | ask | show | jobs
by function_seven 4058 days ago
I just tried to git clone it with

    $ sudo git clone git@github.com:facebook/PathPicker.git
    Cloning into 'PathPicker'...
    Permission denied (publickey).
    fatal: Could not read from remote repository.
    
    Please make sure you have the correct access rights
    and the repository exists.
Any ideas? Thanks.

EDIT: Nevermind. It's an issue with using sudo to git. I can use my own account, but I can't do it in /usr/local.

1 comments

Just try using git over https. You probably have your own key to github.com and the server will access deny it when accessing someone else's repo.