git问题:push的时候报错remote: Permission to xxx/xxx.git denied to xxx.
问题描述
当你在命令行push一个项目的时候git push -u origin master
出现此报错
remote: Permission to <新的github名/项目名.git> denied to <旧的github名>.
fatal: unable to access 'https://github.com/<新的github名/项目名.git>/': The requested URL returned error: 403
问题原因
我们来大致的翻译一下这个错误:用户<旧的github名>没有权限访问用户<新的github名>的存储库<项目名>。
也就是说:现在电脑登录的是用户<旧的github名>,我们需要切换到用户<新的github名>。
so,怎么切换账号呢,看我操作⤵️
解决方法
1、mac版解决方法
cmd+space
搜索钥匙串访问
- 继续
然后右键这个github.com,会出现显示简介,点开,你就可以看到,现在显示的是你的老账号密码,你只需要修改为你的新的账号密码就ok啦~
2、windows版解决方法
- 同样的,编辑为你的新账号
最后
git push origin master
,不成功你来砍我
git问题:push的时候报错remote: Permission to xxx/xxx.git denied to xxx.相关推荐
- 【码云】git push origin mash 报错:remote: error: GH007: Your push would publish a private email address.
近期使用码云提交代码到git仓库,发现网上搜索的都是github的解决办法(可以解决的地址:https://blog.csdn.net/qq_24862137/article/details/9440 ...
- git push 报错:remote: Permission to XXXA/xxxx.git denied to XXXB
针对git push的时候报错remote: Permission to userA/xxxx.git denied to userB.fatal: unable to access 'https:/ ...
- Git 最著名报错 “ERROR: Permission to XXX.git denied to user”终极解决方案
今天和同事在弄github的时候,遇到了点小麻烦,在全球最大的中文网上一搜,果然不出所料,找不到写解决方案,于是自己在stackOverFlower上看了好几篇,总结了一下,终于找到解决方案!报错如下 ...
- git push报错 ! [remote rejected] master -> master (push declined due to email privacy restrictions)
使用push命令 将本地仓库push到github时 报错: git push https://github.com/lexsaints/taobao_spider.git master 报错信息如下 ...
- 解决git报错[remote rejected] HEAD -> master (pre-receive hook declined) error: failed to push some...
git push 报错 ...[remote rejected] HEAD -> master (pre-receive hook declined) error: failed to push ...
- IDEA输入命令git push origin master报错: ! [remote rejected] master - master (hook declined)
IDEA输入命令git push origin master报错: ! [remote rejected] master -> master (hook declined) error: fai ...
- git push origin master报错
git push origin master报错error: src refspec xxx does not match any / error: failed to push some refs ...
- git push origin master报错的解决方法 常见git命令(待更新)
git push origin master报错的解决方法 & 常见git命令(待更新) 参考Git常用命令 文章目录 git push origin master报错的解决方法 & ...
- git push github SSL报错处理
本文仅供学习交流使用,如侵立删!demo下载见文末 git push github SSL报错 问题:OpenSSL SSL_connect: SSL_ERROR_SYSCALL in connect ...
最新文章
- POJ 2418 Hardwood Species(trie 树)
- .NetCore Winform控制台 做HTTP Host,简易接口
- 历史性胜利!纽约曼哈顿充电站数量超过加油站
- 互斥与同步——local_irq_enable与local_irq_disable
- 能伸能屈的拼音及解释
- stm的小型开源gui介绍
- seaJS 模块加载过程分析
- arduino/mixly 智纳捷TTS语音合成模块
- PHP 蚂蚁芝麻信用分接口
- 去除ueditor自动默认添加p标签
- zto中通电子面单cpcl打印指令实例
- ChatGPT翻译怎么样-ChatGPT批量翻译工具软件
- 算术的逻辑运算与指令详解
- 漫画插画绘图工具:MediBangPaintPro for Mac
- 制作全集成定制版Office2007安装包
- Vue (一) --- vue.js的快速入门使用
- Windows操作系统发展简史【图】
- Latex中自动引用参考文献的方法,一分钟搞定
- oracle 左连接(left join) 排序问题
- 运输SaaS平台oTMS宣布完成2500万美元B轮融资