无法将本地存储库推送到GitHub

时间:2019-05-25 07:34:12

标签: github github-for-windows

无法将本地存储库推送到GitHub

遵循的步骤:

  1. mkdir github-local
  2. cd github-local
  3. git init
  4. touch README.md
  5. git add .
  6. git commit -m "test commit"
  7. git remote add origin git@github.com:sounak-patra/github-local.git
  8. git remote -v
  9. git push --set-upstream origin master

输出:

ERROR: Repository not found.
fatal: Could not read from remote repository.

Please make sure you have the correct access rights
and the repository exists.

1 个答案:

答案 0 :(得分:0)

首先创建远程存储库以推送到该存储库。在尝试添加远程存储库(步骤7)之前,您必须创建远程存储库。

该错误不言自明:

  

错误:找不到存储库。致命:无法从远程存储库读取。   请确保您具有正确的访问权限,并且存储库存在。