错误

git push -u origin master

Unauthorized

fatal: Could not read from remote repository.

(Bitbucket - Github)

解决办法

  1. 确定已在本地设置Git参数:

    git config --global user.name "Your name"
    git config --global user.email "yourname@example.com"
  2. 确定当前系统的公钥已生成@ ~/.ssh/id_rsa.pub:查看生成方法
  3. (重要)将你的公钥从 当前库的访问密钥中删除掉,因为Bitbucket将其权限设置为“Read-only”:位置是REPO -> Settings -> Access keys
  4. (重要)将你的公钥写入Your profile -> bitbucket settings -> SSH-Keys

Git push错误,Unauthorized fatal: Could not read from remote repository.未验证不能提交相关推荐

  1. git push时报错fatal: Could not read from remote repository.

    后来发现,出现这个问题是因为仓库地址不对 使用如下命令先查看一下: $ git remote -v 发现跟github的地址不一致 然后在终端输入:git remote set-url origin ...

  2. git push错误(fatal: The upstream branch of your current branch does not match)解决方案

    有时候通过git push命令时会提示不成功,错误提示如下: localhost:lean-server alioo$ git push fatal: The upstream branch of y ...

  3. git解决 “fatal: Could not read from remote repository.“

    问题描述: 在使用Git将本地仓库推送到远程仓库的时候,发生了如下错误:"fatal: Could not read from remote repository." 问题原因: ...

  4. git@github.com:Permission denied(publickey).fatal: Could not read form remote repository错误

    文章目录 前言 问题分析 解决方法 配置客户端 配置服务端 验证 前言 在使用goland从github下载依赖时(git clone github.com/gin-gonic/gin)出现git@g ...

  5. git push错误解决方案

    git push错误解决方案 参考文章: (1)git push错误解决方案 (2)https://www.cnblogs.com/tinyphp/p/5102849.html 备忘一下.

  6. 解决git@github.com: Permission denied (publickey). fatal: Could not read from remote repository. Pleas

    今天用idea提交代码到github上,push后报错 git@github.com: Permission denied (publickey). fatal: Could not read fro ...

  7. fatal: ‘origin‘ does not appear to be a git repository fatal: Could not read from remote repository.

    fatal: 'origin' does not appear to be a git repository fatal: Could not read from remote repository. ...

  8. gitHub报错之git@github.com: Permission denied (publickey). fatal: Could not read from remote repository

    前言 当我们在新的电脑环境,本地上传到自己的github储存仓库就会出现时密钥不匹配,被拒绝上传. 第一句 git@github.com: Permission denied (publickey). ...

  9. fatal: ‘main‘ does not appear to be a git repository fatal: Could not read from remote repository.

    今天使用git命令 上传本地分支,报了一个错: fatal: 'main' does not appear to be a git repository fatal: Could not read f ...

最新文章

  1. cache老化时间的思考--以nat为例
  2. 四轴飞行器1.1 Matlab 姿态显示
  3. 王宏计算机系,王宏健(副教授)
  4. 查看Linux 下某个程序的内存情况
  5. Python的简史:一切从讨厌花括号开始
  6. PAT Basic 1012
  7. MyEclipse中使用Proxool+mysql连接池的方法
  8. matlab保存图片时不使用指令设置图像分辨率、尺寸等
  9. java阿拉伯数字转中文或金钱
  10. 多线程获取豆瓣网页的网络爬虫(Python实现)
  11. 这条国道堪称“中国人的景观大道”,而且只许中国人走完全程
  12. .net设计模式 (享元模式)学习笔记
  13. OPPO三星苹果影像“硬碰硬”,没想到Reno6 Pro+夜拍竟略胜一筹
  14. 微信小程序开发学习—Day1
  15. 经典练习项目门级的三个案列
  16. python混淆ios代码_iOS 代码混淆的简单使用
  17. 004eNSP配置企业级防火墙
  18. linux 内核 风扇,Linux CPU温度,风扇监测lm-sensors
  19. 在idea中往Kafka发送消息失败
  20. smurf分布式攻击(DDOS)

热门文章

  1. ffmpeg截取视频的片段
  2. 视频按帧截取 python程序
  3. 【C++广度搜索入门】面积
  4. 蒙特卡洛树搜索 棋_蒙特卡罗树搜索赢得黑白棋
  5. 3.8 chalk包的使用
  6. c++(最大公约数)
  7. testlink升级
  8. JAVA--equal、length、Arrays、Static
  9. 已知三边 求三角形面积
  10. 6 FI配置-财务会计-定义总账科目组(Account Group)