Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/git/20.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Git 如何修复因urlopen错误[Errno-2]名称或服务未知而导致的repo上载失败?_Git_Repo - Fatal编程技术网

Git 如何修复因urlopen错误[Errno-2]名称或服务未知而导致的repo上载失败?

Git 如何修复因urlopen错误[Errno-2]名称或服务未知而导致的repo上载失败?,git,repo,Git,Repo,我已经用repo创建了自己的git服务器。 git工作正常。 回购协议可以将代码同步到服务器。 但当我使用“回购上传”时,它失败了。 日志是 :~/retest/build/ap$ repo upload . Upload project ap/ to remote branch master: branch mifi ( 1 commit, Thu Jul 27 21:20:21 2017 +0800): 3da5c7d8 build:first build to null

我已经用repo创建了自己的git服务器。 git工作正常。 回购协议可以将代码同步到服务器。 但当我使用“回购上传”时,它失败了。 日志是

:~/retest/build/ap$ repo upload .

Upload project ap/ to remote branch master:

branch mifi ( 1 commit, Thu Jul 27 21:20:21 2017 +0800):

     3da5c7d8 build:first build

to null (y/N)? y

----------------------------------------------------------------------

FAILED ap/             mifi

   (null: <urlopen error [Errno -2] Name or service not known>)
:~/retest/build/ap$ cat .git/config

core

    repositoryformatversion = 0

    filemode = true

filter "lfs"

    smudge = git-lfs smudge --skip -- %f

remote "lqce"

    url = http://url/for/git

    review = null

    projectname = mifi/ap

    fetch = +refs/heads/*:refs/remotes/lqce/*

branch "mifi"

    remote = lqce

    merge = refs/heads/master

:~/retest/build/ap$ repo upload .

branch mifi ( 1 commit, Thu Jul 27 21:20:21 2017 +0800):

     3da5c7d8 build::first build

to null (y/N)? y