无法读取“https://github.com”的用户名:没有这样的设备或地址

Ros*_*one 10 git github docker

我正在使用以下命令git构建docker图像:sudo docker build github.com/roseperrone/myproject,但出现此错误:

could not read Username for 'https://github.com': No such device or address

我应该如何提供我的 git 凭据?

我在 AWS ec2 实例中运行。

小智 -4

我认为你需要通过命令行设置 git 配置。

请参阅 github 设置文档:https ://help.github.com/articles/set-up-git#platform-all

$ git config --global user.name "Your Name Here"
$ git config --global user.email "your_email@example.com"
Run Code Online (Sandbox Code Playgroud)

ETC。