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协议