git fatal: could not read Username for ‘http://xxx.xxx.xxx‘: No such device or address

写了个 脚本自动pull 远程代码  跑的时候踩了个坑

解决方案:修改url

打开.git文件夹下面的config配置文件
https://{username}:{password}@{git仓库地址}.git

[remote "origin"]
	url = https://{username}:{password}@{git仓库地址}.git


版权声明:本文为wolf23151269原创文章,遵循CC 4.0 BY-SA版权协议,转载请附上原文出处链接和本声明。