错误代码如下:
error: The requested URL returned error: 403 while accessing https://github.com/xx-name/sss-app.git/info/refs
fatal: HTTP request failed
解决方法:
1:通过git clone到本地后,在.git/config文件中可以看到该项目路径信息。
打开此文件再把项目地址修改为 ssh就Ok了。
2:命令:
git remote set-url origin ssh://
但是 修改后,执行git push -u origin master报:
Warning: Permanently added the RSA host key for IP address '192.30.252.130' to the list of known hosts.
Permission denied (publickey).
fatal: The remote end hung up unexpectedly
貌似是哪个key过期了,没有权限
。。。。。。。
参考这个
http://www.cnblogs.com/Leon5/archive/2011/10/23/2222002.html