代码之家  ›  专栏  ›  技术社区  ›  Thảo M. Hoàng

无法从远程服务器提取

git
  •  2
  • Thảo M. Hoàng  · 技术社区  · 8 年前

    我执行了一个git pull命令。但有这个问题。

    $ git pull
    fatal: unable to access 'https://git.my_repository.com.vn/fsoft/meta-packages.git': The requested URL returned error: 403
    

    HTTP协议似乎有问题。我已经检查了连接-没问题。

    谁知道这个问题来自哪里?

    3 回复  |  直到 8 年前
        1
  •  3
  •   Thảo M. Hoàng    8 年前

    sudo route add -net 192.168.5.0/24 gw 10.88.124.165 dev eth0
    

    git config --global http.proxy ""
    git config --global http.sslVerify "false"
    

        2
  •  0
  •   Hugo    8 年前

    此错误可能是由于您没有正确的权限或在远程服务器上没有正确的授权。

    希望公开禁止请求的原因的服务器可以在响应负载(如果有)中描述该原因。

    资料来源: HTTP Status Codes

        3
  •  0
  •   developer_hatch    8 年前

    git remote -v
    # View existing remotes
    origin  https://github.com/github/reactivecocoa.git (fetch)
    origin  https://github.com/github/reactivecocoa.git (push)
    git remote set-url origin https://github.com/github/ReactiveCocoa.git
    # Change the 'origin' remote's URL
    git remote -v
    # Verify new remote URL
    origin  https://github.com/github/ReactiveCocoa.git (fetch)
    origin  https://github.com/github/ReactiveCocoa.git (push)
    

    那你就可以了 git pull

    https://help.github.com/articles/https-cloning-errors/