Github推送错误。没有权限 [英] Github push error. Permission denied
问题描述
我正准备完成 sudo git push -u来源大师
权限被拒绝(publickey)。
致命:远程终端意外挂断
这怎么解决?
我也试过这个。即git push -u起源大师。
$ b
错误:无法锁定配置文件.git / config:权限被拒绝
错误:无法锁定配置文件.git / config:
权限被拒绝
设置分支主设备以从原点跟踪远程分支主设备。
错误:无法为.git / refs / remotes / origin / master创建目录
错误:无法锁定ref'refs / remotes / origin / master'。
一切都是最新的
可以 引用: 您是否忘记将公钥添加到github项目设置中? 转到 https://github.com/ [username here] / [project name here] / edit and 请仔细阅读: http://help.github .com / mac-key-setup / I am just trying to create my first repo from Ubuntu 11.10 with this command: I was about to finish Permission denied (publickey).
fatal: The remote end hung up unexpectedly How can this be fixed? I tried this too. i.e git push -u origin master. I got this error. 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
Could this be of any help? Quote: 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推送错误。没有权限的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
同时检查以确保您的私钥在您的.ssh目录中。
确保您的公钥已设置。
sudo git push -u origin master