我拥有一台Mac,当我尝试输入
时git push origin master
我收到此错误
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.
此外,我不想切换到ssh。
由于
答案 0 :(得分:0)
您没有添加原始服务器:
git remote add origin https://domain.com/user/repo.git
您可以使用git remote -v
检查远程添加的服务器:
git remote -v
origin https://domain.com/user/repo.git (fetch)
origin https://domain.com/user/repo.git (push)
您可以前往this site阅读更多内容。