码迷,mamicode.com
首页 > 其他好文 > 详细

git 提交代码到github错误处理

时间:2016-11-11 01:23:07      阅读:167      评论:0      收藏:0      [点我收藏+]

标签:bsp   修改   http   turn   密码   conf   for   https   origin   

git push -u origin master
error: The requested URL returned error: 403 Forbidden while accessing https://github.com/hjyoung/php-redis-in-action.git/info/refs

修改配置

vim .git/config

将配置

[remote "origin"]
        fetch = +refs/heads/*:refs/remotes/origin/*
        url = https://github.com/hjyoung/php-redis-in-action.git

修改为

url = https://hjyoung@github.com/hjyoung/php-redis-in-action.git

 

再次push,输入密码,上传成功

git 提交代码到github错误处理

标签:bsp   修改   http   turn   密码   conf   for   https   origin   

原文地址:http://www.cnblogs.com/hjyang2012/p/6052810.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!