remote: fatal: could not read Username for 'http://spapa.wicp.net:3000': No such device ors(

Posted 坠落鱼

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了remote: fatal: could not read Username for 'http://spapa.wicp.net:3000': No such device ors(相关的知识,希望对你有一定的参考价值。

解决办法:

git remote add origin https://{username}:{password}@github.com/{username}/project.git

in my case ->
$git remote add origin https://haitao-dou:[email protected]/haitaodou/test-project.git

 或者

修改.git/config文件:

[core]
        repositoryformatversion = 0
        filemode = true
        bare = false
        logallrefupdates = true
[remote "origin"]
        url = http://{username}:{password}@spapa.wicp.net:3000/unphp/sscmpweb.git
        fetch = +refs/heads/*:refs/remotes/origin/*
[branch "master"]
        remote = origin
        merge = refs/heads/master

 

以上是关于remote: fatal: could not read Username for 'http://spapa.wicp.net:3000': No such device ors(的主要内容,如果未能解决你的问题,请参考以下文章

Push failed: Failed with error: fatal: Could not read from remote repository

Permission denied (publickey). fatal: Could not read from remote repository.

fatal: Authentication failed could not read from remote repository

fatal: Authentication failed could not read from remote repository

fatal: Could not read from remote repository.的解决办法

fatal:'origin' does not appear to be a git repository fatal:Could not read from remote repos