问题1:
fatal: 'origin' does not appear to be a git repository
fatal: Could not read from remote repository.
说明库是有的,但是没办法push。所以重新关联一下。
解决方法:
输入以下代码,这是因为本地的分支没有和远程分支建立联系,需要执行以下代码就可以正常push了
git push --set-upstream origin master
问题2:
fatal: 'git@github.com/xxx/xx.git' does not appear to be a git reposory
fatal: Could not read from remote repository.
Please make sure you have the correct access rights and the repository exists.
解决方法:
1.检查remote内容
git remote -v
2.删除远程的origin
git remote rm origin
3.检查是否完全删除
git remote -v
4.空了之后重新建立
git remote add origin git@github.com:你的gihub名字/你的仓库名.git
5.检查remote内容
git remote -v
6.最后重新push
git push -u origin master文章来源:https://www.toymoban.com/news/detail-484280.html
完成啦!!!!文章来源地址https://www.toymoban.com/news/detail-484280.html
到了这里,关于[git]报错fatal: ‘origin‘ does not appear to be a git repository Could not read from remote repository的文章就介绍完了。如果您还想了解更多内容,请在右上角搜索TOY模板网以前的文章或继续浏览下面的相关文章,希望大家以后多多支持TOY模板网!