草庐IT

m2repository

全部标签

git报错:Permission denied (publickey). fatal: Could not read from remote repository.

背景:由于新换了电脑,新装了git,所以在用git拉取代码的时候就出现了标题一样的错误ternimal下出现下面错误:Permissiondenied(publickey).fatal:Couldnotreadfromremoterepository.Pleasemakesureyouhavethecorrectaccessrightsandtherepositoryexists.分析原因:原因是由于你在本地(或者服务器上)没有生成ssh key,可执行cd~/.sshls来查看,此时查不到内容,没有key也就意味着不安全,所以才会被拒绝远程链接代码仓库。解决办法:1.首先,如果你没有sshk

Mac(macBook M2pro)上环境变量不生效的原因

Mac(macBookM2pro)上环境变量不生效的原因1、mac中环境变量配置文件的优先级/etc/profile/etc/paths~/.bash_profile~/.bash_login~/.profile~/.bashrc2、不生效原因(命令行不一致所导致)在一些配置环境变量的教程中,一般都是让我们在~/.bash_profile添加相应的暴露(export)比如:这也是在类unix操作系统的一种默认的方式但是,见名知意,bash_profile只是在bash命令行才会永久有效,在没有自定义的情况下,我们的mac通常默认开启的是zsh命令行形式3、解决方法1(给zsh配置环境变量)第一

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

很多小伙伴们在gitclone下载资源的时候会出现如下的错误:$gitclonegit@gitee.com:chen-xuerun/uniapp.gitCloninginto'uniapp'...git@gitee.com:Permissiondenied(publickey).fatal:Couldnotreadfromremoterepository.Pleasemakesureyouhavethecorrectaccessrightsandtherepositoryexists.​大家会想为什么呢?明明我的仓库地址没问题怎么会下载资源错误呢。这其实是因为没有配置正确的公钥导致没有权限操作

报错:git clone 时候出现Please make sure you have the correct access rights and the repository exists.问题解决

输入gitclone命令时出现Pleasemakesureyouhavethecorrectaccessrightsandtherepositoryexists.错误,出现改问题的原因是git服务器没有存储本地ssh密钥。解决步骤:删除.ssh文件夹【C:\Users(本地用户名).ssh】中的known_hosts(直接删除即可)在下载好的Git中的bin目录下(一般是C:\ProgramFiles\Git\bin)打开bash.exe输入命令ssh-keygen-trsa-C“username”(注:username为你git上的用户名),如果执行成功。返回:Generatingpubli

利用 Google Artifact Repository 构建maven jar 存储仓库

参考了google官方文档https://cloud.google.com/artifact-registry/docs/java/store-java#gcloud_1首先enableGARapigcloudservicesenableartifactregistry.googleapis.comgcloudserviceslist|grep-iartifactartifactregistry.googleapis.comArtifactRegistryAPI其次创建1个maven仓库gcloudartifactsrepositoriescreatejava-repo--repository

git clone 时候出现 Please make sure you have the correct access rights and the repository exists

Pleasemakesureyouhavethecorrectaccessrightsandtherepositoryexists请确保您具有正确的访问权限并且存储库存在问题描述:输入gitclone命令时出现Pleasemakesureyouhavethecorrectaccessrightsandtherepositoryexists.错误,出现这个问题的原因是git服务器没有存储本地ssh密钥解决步骤:1.删除.ssh文件夹C:\Users\Administrator\.ssh,如果可能找不到Administrator,删除C:\Users\(本地用户名)\.ssh 中的known_ho

解决git@github.com:Permission denied (publickey). Could not read from remote repository. Please make s

在进行项目clone的时候出现报错git@github.com:Permissiondenied(publickey).Couldnotreadfromremoterepository.Pleasemakesureyouhavethecorrectaccessrightsandtherepositoryexists.这个错误通常表示没有正确的权限来访问该Git仓库。为了解决GitHub上的权限问题,需要执行以下步骤:1、生成SSH密钥对打开命令行终端(例如GitBash)并输入以下命令:ssh-keygen-trsa-b4096-C"你的电子邮件地址"2、添加SSH密钥到GitHub帐户将公钥

M2芯片的Mac上安装Linux虚拟机——提前帮你踩坑 ➕ 安装ubuntu虚拟机图形化 ➕ 解决MacOs系统和WmwareFusion之间不能复制粘贴问题

M2芯片的Mac上安装Linux虚拟机——提前帮你踩坑➕安装ubuntu虚拟机图形化➕解决MacOs系统和WmwareFusion之间不能复制粘贴问题1.前言1.1系统说明1.2Linux系统选择——提前避坑1.3下载vmware_fusion1.3.1官网下载1.3.2注册+CAPTCHA验证码问题1.3.3产品说明1.4下载操作系统镜像1.4.1下载centos(如果版本合适的)1.4.2下载ubuntu2.安装vmware_fusion2.1安装2.2注册许可证密钥3.导入镜像,安装虚拟机3.1选择光盘或映像3.1.1选择CentOs(避坑:根据需要选择,可能版本不匹配)3.1.2选择u

MacBook M2 使用Xcode配置OpenCV-C++环境

在MacBook上安装C++实现的OpenCV可以选择Homebrew和源码安装两种方式,这里我选择了源码安装,选择源码方式安装,你必须使用其它方式安装cmake,因为我还使用anaconda建立独立环境配置了Python-OpenCV环境,故我使用了condainstallcmake安装了cmake。你还可以选择安装Homebrew来使用brewinstallcmake安装cmake。下面我们一起来开始配置OpenCV-C++环境:一、安装OpenCV1.获取OpenCV源码在你的工作目录下(自己选择,我是在“下载”文件夹下进行克隆的)使用gitclone获取源码:如果显示克隆失败,这很正常