git - 如何按需更改 github 凭据?
问题描述
我有一个 github 帐户,我用它在 microsft 边缘浏览器上登录。另一个是镀铬的。主要是我使用来自microsoft edge的那个,在第一次提交github时,当我尝试推送时再次询问用户名和密码,我成功登录,之后我一直使用该帐户,我推送没有问题。
现在我需要在 chrome 上的另一个帐户上推送一些东西。但我仍然以某种方式在我的电脑上“登录”为我在微软边缘使用的 github 帐户。
当我尝试推送其他帐户时(当然,我从该帐户添加了第一个远程仓库来源)我得到了
$ git push -u origin master
remote: Permission to xxxx.git denied to some-user-name.
fatal: unable to access 'https://github.com/xxx/project-name.git/': The requested URL returned error: 403
我该如何解决这个问题?
解决方案
推荐阅读
- ruby - 如何在 victor 中生成混合大小写的 SVG 元素,例如 flowRegion
- c# - 如果后台线程中存在未处理的异常,如何使主进程崩溃
- r - bnlearn::bn.fit 方法“mle”和“bayes”的差异和计算
- javascript - 在下载之前捕获 Highcharts 客户端导出响应
- javascript - iDangerous Swiper 的连续/恒定自动播放速度
- c++ - 获取pugixml中随机参数的值
- ios - 用于在 Twilio 聊天中键入指示器的委托方法未被调用
- javascript - 分页信息和总记录
- node.js - 更改后重新处理请求
- bluetooth - OpenOCD + nRF52810 + ST Link V2 加载样本十六进制