无法从git中的远程存储库推送或获取

时间:2020-07-06 20:06:27

标签: git github git-bash git-push git-fetch

我能够在GitHub上初始化远程存储库。查看消息:

git remote show origin
* remote origin
  Fetch URL: https://github.com/sonicspark/Web-Developer-Course
  Push  URL: https://github.com/sonicspark/Web-Developer-Course
 HEAD branch: master
  Remote branches:
    Staging tracked
    master  tracked
  Local branch configured for 'git pull':
    master merges with remote master
  Local ref configured for 'git push':
    master pushes to master (local out of date)

由于某些原因,我无法使用以下命令从远程存储库中推送或获取数据:

git fetch Web-Developer-Course

git push Web-Developer-Course master

我从两个命令中收到以下错误消息:

fatal: 'Web-Developer-Course' 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.

我已经成功地将公共密钥发布到了我的GitHub帐户。任何有助于找出为什么我无法推送或提取到我的远程存储库的帮助都会有所帮助。

0 个答案:

没有答案