IDEA Git 报错could not read from remote repository

这篇具有很好参考价值的文章主要介绍了IDEA Git 报错could not read from remote repository。希望对大家有所帮助。如果存在错误或未考虑完全的地方,请大家不吝赐教,您也可以点击"举报违法"按钮提交疑问。


Git:could not read from remote repository。

首先再git后台,检查是否有对应工程的权限
IDEA Git 报错could not read from remote repository,intellij-idea,git,java
1  检查idea工程project目录下的.git文件夹下的.config文件,origin配置是否正确

IDEA Git 报错could not read from remote repository,intellij-idea,git,java

打开.config文件,url有两种方式:https的方式、ssh的方式,检查对应的url是否正确

[core]
	repositoryformatversion = 0
	filemode = false
	bare = false
	logallrefupdates = true
	symlinks = false
	ignorecase = true
[remote "origin"]
	url = https://git.xxxx.com/his/xxxx.git
	fetch = +refs/heads/*:refs/remotes/origin/*
[branch "master"]
	remote = origin
	merge = refs/heads/master
[core]
	repositoryformatversion = 0
	filemode = false
	bare = false
	logallrefupdates = true
	symlinks = false
	ignorecase = true
[remote "origin"]
	url = git@git.xxxx.com:xxxx/xxxx.git
	fetch = +refs/heads/*:refs/remotes/origin/*
[branch "master"]
	remote = origin
	merge = refs/heads/master

2 如果正确,请配置ssh 密钥,网上随便搜索一大堆,
idea配置git ssh
3 最后删除known_hosts,请执行 ssh -T git@xxxxx,把你的gitlab加入到known_hosts
IDEA Git 报错could not read from remote repository,intellij-idea,git,java
IDEA Git 报错could not read from remote repository,intellij-idea,git,java文章来源地址https://www.toymoban.com/news/detail-713344.html

到了这里,关于IDEA Git 报错could not read from remote repository的文章就介绍完了。如果您还想了解更多内容,请在右上角搜索TOY模板网以前的文章或继续浏览下面的相关文章,希望大家以后多多支持TOY模板网!

本文来自互联网用户投稿,该文观点仅代表作者本人,不代表本站立场。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如若转载,请注明出处: 如若内容造成侵权/违法违规/事实不符,请点击违法举报进行投诉反馈,一经查实,立即删除!

领支付宝红包 赞助服务器费用

相关文章

  • [git]报错fatal: ‘origin‘ does not appear to be a git repository Could not read from remote repository

    问题1:   fatal: \\\'origin\\\' does not appear to be a git repository fatal: Could not read from remote repository. 说明库是有的,但是没办法push。所以重新关联一下。 解决方法: 输入以下代码, 这是因为本地的分支没有和远程分支建立联系,需要执行以下代码就可以正常 push 了   问题2:   fatal:

    2024年02月09日
    浏览(21)
  • 【已解决】git clone 报错:Could not read from remote repository. Please make sure you have the correct acce

    换电脑了,克隆代码遇到报错: 找到本地公钥,复制到添加 SSH 公钥处,遇到报错: 官方提出的解决办法:添加 SSH Keys 报已存在怎么办? 按照官方的提示,大概率是原因1,只能重新生成了 但是现在本地这个 SSH Key 在其他地方有使用(Gitee/Github/…),想要保留,再生成一个。

    2024年02月10日
    浏览(22)
  • git 解决 “fatal: Could not read from remote repository.“

    现象 在使用Git将本地仓库推送到远程仓库的时候,发生了如下错误:“fatal: Could not read from remote repository.”   原因 出现这错误一般是以下两种原因: 客户端与服务端未生成 ssh key 客户端与服务端的ssh key不匹配 为解决以上问题,我们需要重新生成一次ssh key ,并重新配置一

    2024年02月09日
    浏览(22)
  • git clone出现fatal: Could not read from remote repository解决办法

    在git clone一个项目时出现如下报错: (第一个选项,问你是否继续连接?输入yes然后回车) 通过报错信息可以看出,这是因为Github上没有本机的公钥导致的。 其中双引号中填自己Github注册账号用的邮箱地址。 点击回车,看到提示 说明:前三个冒号分别让你输入保存公钥的

    2023年04月15日
    浏览(51)
  • 解决git@github.com: Permission denied (publickey). Could not read from remote repository

    原因分析 Permission denied (publickey) 没有权限的publickey ,出现这错误一般是以下两种原因 客户端与服务端未生成 ssh key 客户端与服务端的ssh key不匹配 找到问题的原因了,解决办法也就有了,重新生成一次ssh key ,服务端也重新配置一次即可。 客户端生成ssh key 470812087@qq.com改为

    2024年02月04日
    浏览(31)
  • git问题:git@github.com: Permission denied (publickey). fatal: Could not read from remote repository.

    重装系统后,git push项目时出现git@github.com: Permission denied (publickey). fatal: Could not read from remote repository.Please make sure you have the correct access rights and the repository exists.出现这个问题表示你在尝试将本地代码推送到GitHub时,没有提供正确的公钥,或者你的公钥没有被添加到你的GitHu

    2024年02月21日
    浏览(23)
  • 解决git@github.com:Permission denied (publickey).fatal:Could not read from remote repository.

    1.打开Git Bash。 2.输入 ls -al ~/.ssh 以查看是否存在现有 SSH 密钥。 3.检查目录列表以查看您是否已有公共 SSH 密钥。默认情况下,GitHub 支持的公钥的文件名是以下之一: id_rsa.pub、 id_ecdsa.pub、 id_ed25519.pub。 如果您收到 ~/.ssh 不存在的错误,则说明您在默认位置中没有现有的 SS

    2024年02月12日
    浏览(25)
  • 解决GIT问题:git@gitee.com: Permission denied (publickey).fatal: Could not read from remote repository.

    下图是详细的报错信息: 对于这个问题,我们得针对不同的情况来分析,逐步解决这个问题 如果您是刚开始使用git,并且没有生成公钥,我们需要先使用命令来生成公钥 为了更加易懂,给大家额外补充一些SSH的知识 SSH key 的作用: 实现本地仓库和 Github 之间免登录的加密数据

    2024年02月20日
    浏览(26)
  • 解决git@github.com:Permission denied (publickey). Could not read from remote repository. Please make s

    这个错误通常表示没有正确的权限来访问该 Git 仓库。 为了解决GitHub上的权限问题,需要执行以下步骤: 打开命令行终端(例如Git Bash)并输入以下命令: 将公钥添加到GitHub帐户中, 执行以下步骤: 在“Title”字段中为新密钥提供一个描述性标题。 将“Key”字段中的公钥粘

    2024年02月06日
    浏览(29)
  • 解决在linux上git clone 时报错 git@gitee.com: Permission denied (publickey). Could not read from remote repo

    今天在gitee上看到一个比较感兴趣的项目,于是就想下载下来研究研究,结果git clone 克隆的时候报错了,报错如下: git@gitee.com: Permission denied (publickey).fatal: Could not read from remote repository.Please make sure you have the correct access rights and the repository exists. Permission denied (publickey) 没有权

    2024年02月11日
    浏览(23)

觉得文章有用就打赏一下文章作者

支付宝扫一扫打赏

博客赞助

微信扫一扫打赏

请作者喝杯咖啡吧~博客赞助

支付宝扫一扫领取红包,优惠每天领

二维码1

领取红包

二维码2

领红包