![](https://img-blog.csdnimg.cn/20201014180756927.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
Git
夜莺_Cody
这个作者很懒,什么都没留下…
展开
-
git运行报错 Could not resolve host: github.com
git运行clone或push命令时,报错 Could not resolve host: github.com:是先ping github.com,然后我ping完之后,直接是下图:根据查到的获取到 ip为13.250.177.233。编辑系统文件hosts重新运行了 git clone url 成功!...原创 2021-07-03 16:24:51 · 3104 阅读 · 0 评论 -
git遇到的问题之“Please make sure you have the correct access rights and the repository exists.”
对于git的提交一直很小心翼翼,感觉一不小心就会踩到莫名的坑。这不,某天commit 就遇到了Onbranchmasternothing to commit (working directoryclean)一查意思。你的分支很干净?干净?excuse me?然后git push origin master一下,漫长等待了弹出了fail:#¥%@(此处省略,我们看重点)...转载 2019-08-29 14:29:14 · 68424 阅读 · 9 评论 -
在github上传项目时error: failed to push some refs to 'https://github.com/...
push时出现error: failed to push some refs to 'https://github.com/...这个错误。出错原因主要是GitHub中README.md文件不在本地代码目录中。使用git push -u origin master -f...原创 2019-08-30 10:23:58 · 342 阅读 · 0 评论 -
git报错:'fatal:remote origin already exists'怎么处理
git添加远程库的时候有可能出现如下的错误怎么解决?只要两步:1、先删除git remote rm origin2、再次执行添加就可以了。原创 2019-08-30 14:55:00 · 308 阅读 · 0 评论