fatal: ‘main‘ does not appear to be a git repository fatal: Could not read from remote repository.

今天使用git命令 上传本地分支,报了一个错:

fatal: ‘main’ does not appear to be a git repository fatal: Could not read from remote repository Please make sure you have the correct access rights and the repository exists.

直接上图:
在这里插入图片描述

错误原因:

原来是我刚才在本地clone了一个远程的项目.没有做关联

解决方法:

git remote add main 远程的项目地址
fatal: ‘main‘ does not appear to be a git repository fatal: Could not read from remote repository._第1张图片

完美解决,

你可能感兴趣的:(git)