start.sh在linux下启动报错 Can't connect to any repository: ,cannot open git-receive-pack


个人博客 地址:http://www.wenhaofan.com/article/20181223135418

报错信息

Can't connect to any repository: ,cannot open git-receive-pack

原因

.sh脚本在windows系统下用记事本文件编写的,文件格式为dos

解决方法

使用vi工具修改.sh文件格式

     1.使用vi工具打开文件

      vi start.sh

    2. 修改文件格式 

     :set ff=unix 

     :wq

猜你喜欢

转载自www.cnblogs.com/fanwenhao/p/10164563.html