我只是想用这个命令从 Ubuntu 11.10 创建我的第一个 repo:
我正要完成 sudo git push -u origin master
Permission denied (publickey). fatal: The remote end hung up unexpectedly
如何解决这个问题?
我也试过了。即 git push -u origin master。我收到了这个错误。
error: could not lock config file .git/config: Permission denied error: could not lock config file .git/config: Permission denied Branch master set up to track remote branch master from origin. error: unable to create directory for .git/refs/remotes/origin/master error: Cannot lock the ref 'refs/remotes/origin/master'. Everything up-to-date
最佳答案
可以 this有什么帮助吗?
引用:
Did you forget to add your public key to the github project settings? Also check to make sure your private key is in your .ssh directory.
Goto https://github.com/[username here]/[project name here]/edit and make sure your public key is set.
Read this too: http://help.github.com/mac-key-setup/
关于Github 推送错误。没有权限,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/8402281/