我正在尝试使用以下命令从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
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