为什么`git pull`工作得很好,但`git push`不行?

时间:2018-01-20 17:07:34

标签: git github ssh github-pages ssh-keys

我一直在从这个回购中撤出,我最近做了一些我想要推动的更改,所以我尝试了通常的git push origin master,但却发现它不起作用:

19:02 $ git push 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.

但我可以从回购中获取:

19:02 $ git pull origin master
From <url>
* branch            master     -> FETCH_HEAD
Already up-to-date.

我知道必须是正确的,因为我能够拉。根据我的管理员(我问过这个问题),我有开发者权限,这意味着我应该能够拉动和推动。可能是什么问题?

1 个答案:

答案 0 :(得分:1)

如果您使用的是github,bitbucket或类似版本,则很可能与git版本过旧或存储库中缺少访问权限有关。

相关问题