
Git
文章平均质量分 50
Eugene.Tom.Lee
To be or not to be that's a question!
展开
-
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.如果在git push时出现了上述情况,或者说Please make sure you have the correct access rights and the repository exists.那么可以尝试两种解决办法添加ssh公钥,首先查看自己本地的ssh公钥(cat ~/.ssh/id_rsa.原创 2021-01-20 19:09:44 · 3605 阅读 · 0 评论 -
GIT克隆项目出现:The authenticity of host ‘gitee.com (xxx.xxx.xxx.xxx)‘ can‘t be established.
GIT克隆项目出现:The authenticity of host ‘gitee.com (xxx.xxx.xxx.xxx)‘ can‘t be established.新生成密钥的时候,git clone或者push的时候,可能会报这样的错误:Google之后明白,文件夹内少了一个known_hosts文件,本来密钥文件应该是三个,现在只有两个,便报了这样的错误,此时输入yes回车之后,生成了缺少了的known_hosts文件,便可解决这个问题:Are you sure you want to原创 2021-01-18 21:32:06 · 2137 阅读 · 0 评论 -
Please make sure you have the correct access rights and the repository exists
Please make sure you have the correct access rights and the repository exists重新在git设置一下身份的名字和邮箱git config --global user.name “yourname”git config --global user.email“your@email.com"注:yourname是你要设置的名字,your@email是你要设置的邮箱。删除.ssh文件夹(c盘用户下)下的known_hosts(原创 2021-01-18 21:12:10 · 127 阅读 · 0 评论 -
使用git同时连接gitlab和GitHub
使用git同时连接gitlab和GitHub其实很简单,在本地新建两个文件夹,一个是gitlab的本地库,另外一个是github的本地库,其他的照旧。一、git的ssh key的安装配置:假设gitlab与github的工作目录分别如下所示:github工作仓库:~/githubgitlab工作仓库:~/gitlab则配置如下:然后获取ssh秘钥和验证秘钥,具体的之前文章有写。在网页登录github账号,点击个人头像,进入*“setting”*,然后选择ssh and GPG key原创 2021-01-14 10:42:52 · 783 阅读 · 1 评论 -
git clone的速度慢到难以忍受问题的解决方法~
git clone的速度慢到难以忍受问题的解决方法~今天接到个antV/G6图表的一个项目,在github上面看到一个好的开源项目,想要使用它,或者想要研究一下它的源码,这时我们需要使用git clone命令。git clone就是仓库克隆,把服务端的仓库克隆到本地,和git push相对(以前都说push的反义词是pop,现在又多了一个~~)或者用这个方法:用git Clone克隆远程库,奈何Git clone太慢了,慢到不能忍的地步解决办法:方法一: 先把 github项目导入到码云,再c原创 2021-01-13 17:26:44 · 632 阅读 · 0 评论 -
使用git在本地电脑与远程GitHub/gitlub库中clone别人的github上的远程仓库代码,找资源
使用git在本地电脑与远程GitHub/gitlub库中clone别人的github上的远程仓库代码,找资源1.在自己电脑创建本地仓库先下载个Git打开git bash,找一个存放所有git项目的目录,文件夹名字随便起。我起的目录名叫gitRepo。你可以使用mkdir firstPro 加一个文件夹,或者使用鼠标右击新建文件夹然后重命名的方法建一个firstPro的文件夹。我建的地方是指在D盘,节省C盘/系统盘资源。然后,cd 进入文件夹,进行初始化git仓库。 git init git in原创 2020-10-23 09:39:21 · 562 阅读 · 0 评论