windows 下 Git push 出错
来源:互联网 发布:怎么降低软件版本 编辑:程序博客网 时间:2024/05/16 09:40
错误信息:remote: Permission to ProHiryu/Coursera-test.git denied to forever-cactus.
fatal: unable to access ‘https://git@github.com/ProHiryu/Coursera-test.git/‘: The requested URL returned error: 403
其中ProHiryu是我的用户名。
在网上查了很久,大多就是吧Github上面的英文翻译了一下,我折腾了一下午,都快要放弃了,在一个英文网站上看到了一个正确回答,就搞定了。
首先这篇文章的前提是,你已经在Windows上正确配置了Git,这个网上有大把教程可以查。
然后你需要在github上已经将公钥导入,具体参考:https://help.github.com/articles/error-permission-to-user-repo-denied-to-user-other-repo/
如果这样还是出现前面所示的错误的话,那么恭喜你和我一样中招了,接下来我就说下解决办法:
由于github网站默认支持的是ssh远程登录协议,所以在你用户名密码都相同的情况下,必须先在网站上添加你个人的公钥,但是在实际网络中,未必能够通过https或者http协议访问github网站,这个时候你需要打开local config(就是你要push的git项目中的配置文件),将其种url=https://MichaelDrogalis@github.com/derekerdmann/lunch_call.git 修改为 url=ssh://git@github.com/derekerdmann/lunch_call.git,没错,就是换了个默认的登录协议,这样就不会出现上述的permission denied的问题了。
注意将其中用户名都改为自己的。
祝你好运~早日掌握git。
- windows 下 Git push 出错
- git push时出错
- git push时出错
- windows下使用git下载源码出错
- git remote git push出错的解决办法
- windows下git push 返回411 失败的问题
- Windows下使用git push命令的无密码设置
- git远程共享库push代码出错
- Git push本地代码到github出错
- git push提交远程库出错
- git push 出错的两种情况
- git下push失败解决方法
- git下push失败解决方法
- git下push失败解决方法
- git学习--git push出错问题的解决
- windows下Git pull、 push 操作无需输密码的方法
- git在windows下clone、pull或者push内存溢出的解决办法
- windows下使用git,如何保存push到远程仓库时使用的密码
- Web前端和后端之区分
- 如何在word中优雅的插入代码?
- PCA降维算法及MATLAB实现
- 头文件
- English Summary in July
- windows 下 Git push 出错
- Config配置的使用
- URAL 2035 Another Dress Rehearsal 水题、易错
- 207. Course Schedule
- Hust oj 2116 Maximum continuous product(水题)
- 自己总结的日志 ---有实例
- Jsp---EL表达式
- LINUX内核分析。6
- 跟我学Redis(5)—strings类型及操作