git pull 失败的解决办法

参考 :
http://www.cnblogs.com/leealways87/archive/2013/04/14/3020840.html

执行sudo git pull
提示

Permission denied (publickey).
fatal: Could not read from remote repository.

Please make sure you have the correct access rights
and the repository exists.


做以下操作:
 git config --global user.name davidhuang
 git config --global user.email [email protected]
 git remote set-url origin https://[email protected]/gitadmin/it-  message-center.git


解决问题。


猜你喜欢

转载自lhdst-163-com.iteye.com/blog/2260289