我能够在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帐户。任何有助于找出为什么我无法推送或提取到我的远程存储库的帮助都会有所帮助。