码迷,mamicode.com
首页 > 数据库 > 详细

git中出现remote: HTTP Basic: Access denied

时间:2018-11-22 11:46:38      阅读:1611      评论:0      收藏:0      [点我收藏+]

标签:class   href   col   remote   http   use   div   conf   fatal   

git中出现remote: HTTP Basic: Access denied

 

1.git clone时出现

Username for http://******: ***
remote: HTTP Basic: Access denied
fatal: Authentication failed for http://******/java/gh-assemble.git/

 

2.解决方法

1. 如果账号密码有变动 用这个命令 git config –-system –-unset credential.helper 重新输入账号密码 应该就能解决了 
2. 如果用了第一个命令 还不能解决问题那么 用这个命令: 
git config –-global http.emptyAuth true

 

3.原因

远程服务端的用户名和密码与当前系统中git保存的用户名和密码有冲突

 

git中出现remote: HTTP Basic: Access denied

标签:class   href   col   remote   http   use   div   conf   fatal   

原文地址:https://www.cnblogs.com/heyongboke/p/9999824.html

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