代码之家  ›  专栏  ›  技术社区  ›  makansij

为什么“git pull”工作得很好,而“git push”却不行?

  •  4
  • makansij  · 技术社区  · 7 年前

    我一直在退出回购协议,最近我想推动一些变化,所以我尝试了通常的做法 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 回复  |  直到 7 年前
        1
  •  1
  •   lukas_o    5 年前

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