![](https://img-blog.csdnimg.cn/20201014180756922.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
Git
蜗牛有力量
好记性不如写下来
展开
-
解决git push时遇到 Permissiondenied (publickey). fatal:Could not read from remote repository. 如下问题
具体错误为: Permissiondenied (publickey). fatal:Could not read from remote repository. Pleasemake sure you have the correct access rights and the repository exists. 可参...原创 2019-04-17 19:55:06 · 3347 阅读 · 0 评论 -
解决 fatal: Not a git repository (or any of the parent directories): .git 问题
上篇中将本地SSH添加到远程github 中然后关联远程或push 又出现了错误,如下 fatal: Not a git repository (or any of the parent directories): .git 提示说没有.git这样一个目录在命令行 输入 git init 然后回车就好了再重新执行添加文件的命令即可。...原创 2019-04-17 20:10:08 · 760755 阅读 · 44 评论 -
解决git push 错误error: src refspec master does not match any. error: failed to push some refs to
在和远程仓库关联后,我们通过 push 命令将本地仓库的文件推送到线上仓库时,出现了如下错误error: src refspec master does not match any.error: failed to push some refs to常见原因:1.本地git仓库目录下为空2.本地仓库add后未commit3.git init错误用命令git ...原创 2019-04-17 20:29:03 · 136613 阅读 · 9 评论