报错:
fatal: ‘origin’ 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.
报错原因:没有关联或者添加错误关联
解决方法:关联远程仓库
git remote -v: 查看远程仓库详细信息,检查仓库名称和关联地址;
添加仓库关联:git remote add 仓库别名 仓库地址
git remote -v: 查看远程仓库详细信息,包括仓库名称,关联地址
git remote remove orign:删除orign仓库
git remote add origin 仓库地址:添加远程仓库地址
gti push -u origin master: 提交到远程仓库的master主干