您的位置:首页 > 理论基础 > 计算机网络

git https 403

2016-05-10 12:47 519 查看

git https下push到github中遇到403的问题

由于在github下有多个账号同时在工作,一段时间使用一个账号,当使用另外的一个账户时,总是push出错:
access ... 403.其中出现了上个账号的用户名
https://github.com/user/xx.git改为
https://user@github.com/user/xx.git是没有用的,已验证

分析原因

由于git将用户名密码缓存了起来:解决办法
git config --system --unset credential.helper
参考:http://stackoverflow.com/questions/15381198/remove-credentials-from-git

最好的解决办法,用ssh协议
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: