一直在pull这个repo,最近有一些改动想push,所以尝试了常用的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.
但我能够从 repo 中提取:
19:02 $ git pull origin master
From <url>
* branch master -> FETCH_HEAD
Already up-to-date.
我知道这一定是正确的,因为我可以 pull 。根据我的管理员(我问过这个问题)的说法,我拥有开发者权限,这意味着我应该能够 pull 和推。可能是什么问题?
最佳答案
如果您使用的是 github、bitbucket 或类似软件,这很可能与过时的 git 版本或存储库中缺少访问权限有关。
关于git - 为什么 `git pull` 工作得很好,但 `git push` 却不行?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/48358843/