github push代码 403
2013-12-17 10:26
399 查看
错误代码如下:
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
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
相关文章推荐
- java并发编程(读书笔记总结)
- C#XML注释
- 【JAVA笔记】spring3.x配置--每天23:30分执行任务 & log4j.properties的配置
- C语言的typedef 细节
- java 线程池--转
- Spring JDBC 【继承JdbcDaoSupport】
- Ljava.lang.String 异常
- Struts2教程10:国际化
- php返回字符串中的换行符
- c++ 带参数构造全局变量实现方法
- Struts2教程9:实现自已的拦截器
- fw-3.5 - queue by 2 stacks - C++ version - 2013年12月16日21:20:06
- Struts2教程8:拦截器概述
- 0006 Java ExecuteService线程池的原理与实现【原理】
- ln lg,log在c语言中的表示-----转载自yam_killer的专栏
- 配置Spring+struts2+hibernate时遇到的问题
- PHP中获取时间的下一周,下个月等
- 使用国内镜像源来加速python pypi包的安装
- C#与Java之比较
- Struts2教程7:上传任意多个文件