Git push origin master问题

时间:2016-05-02 22:06:13

标签: git push master

我拥有一台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。

由于

1 个答案:

答案 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阅读更多内容。